
/* ======================================== */
/* 🔁 Shared Base for Both Banners */
/* ======================================== */
#install-banner,
#ios-install-banner {
  visibility: hidden;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.4s ease, opacity 0.4s ease;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #3a4a6b;
  color: white;
  font-family: sans-serif;
  text-align: center;
  z-index: 1000;
}

/* ============================== */
/* 📱 Android (Chrome etc.) */
/* ============================== */
#install-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  padding: 1rem;
}

#install-banner.show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0%);
}

#install-banner.hide {
  visibility: hidden;
  opacity: 0;
  transform: translateY(100%);
}

#install-btn {
  margin-left: 1rem;
  background: #EFE9E1;
  color: #3a4a6b;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

#dismiss-banner {
  position: absolute;
  top: 8px;
  right: 12px;
  cursor: pointer;
  font-weight: bold;
}

/* ============================== */
/* 🍏 iOS Safari (Expandable) */
/* ============================== */
#ios-install-banner {
  max-height: 4.5rem;
  overflow: hidden;
  padding: 1rem 1rem 0.5rem;
  font-size: 0.95rem;
  transition:
    transform 0.4s ease,
    opacity 0.4s ease,
    max-height 0.4s ease,
    padding-bottom 0.4s ease;
}

#ios-install-banner.visible {
  visibility: visible;
  transform: translateY(0%);
  opacity: 1;
}

/* Expands to show instructions */
#ios-install-banner.expanded {
  max-height: 12rem;
  padding: 1rem;
}

/* 💡 Fully collapse the header (no leftover space) */
#ios-install-banner.expanded .clickable-header {
  opacity: 0;
  pointer-events: none;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* Instructions section */
#install-body {
  opacity: 0;
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

/* Show instruction text fully and cleanly */
#ios-install-banner.expanded #install-body {
  opacity: 1;
  pointer-events: all;
  max-height: 10rem;
  padding-bottom: 1rem; /* 👈 adds space below the share icon */
}

/* Spacing for share icon */
.share-icon {
  height: 1.35em;
  fill: white;
  vertical-align: middle;
  margin: 0 0.3em 0.25em; /* 👈 bottom spacing added here */
}

/* iOS Banner Top-Right Dismiss (like Android) */
#dismiss-ios-x {
  position: absolute;
  top: 8px;
  right: 12px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2rem;
  z-index: 2;
  transition: opacity 0.3s ease;
}

#ios-install-banner.expanded #dismiss-ios-x {
  opacity: 0;
  pointer-events: none;
}

/* Dismiss link */
#dismiss-ios-banner {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}

/* Header section (clickable) */
.clickable-header {
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.clickable-header i {
  font-size: 1.2rem;
  margin-top: 0.25rem;
  opacity: 0.9;
}

/* ============================== */
/* 📱 Responsive for Mobile */
/* ============================== */
@media (max-width: 600px) {
  #install-banner {
    flex-direction: column;
    font-size: 0.9rem;
  }

  #install-btn {
    width: 100%;
    margin-left: 0;
    margin-top: 0.5rem;
  }
}
