/* Bottom app-download sheet, using Petro Elite's navy and gold palette. */
.app-install-banner {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 10000;
  width: min(680px, 100%);
  transform: translate(-50%, calc(100% + 40px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease,
    visibility 0s linear 0.55s;
}

.app-install-banner.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.app-install-banner.is-closing {
  transform: translate(-50%, calc(100% + 40px));
  opacity: 0;
  pointer-events: none;
}

.app-install-banner__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  padding: 28px max(20px, env(safe-area-inset-right))
    max(26px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  color: #ffffff;
  background: linear-gradient(145deg, #23385f, #102447);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -12px 45px rgba(3, 12, 35, 0.3);
  font-family: "Montserrat", sans-serif;
  text-align: center;
}

.app-install-banner__logo-wrap {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(209, 166, 71, 0.3);
  border-radius: 16px;
}

.app-install-banner__logo {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.app-install-banner__content {
  min-width: 0;
  max-width: 520px;
}

.app-install-banner__title {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: clamp(17px, 4.5vw, 21px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
}

.app-install-banner__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

.app-install-banner__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin-top: 4px;
}

.app-install-banner__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: 12px;
  color: #ffffff !important;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  box-shadow: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  transition: background-color 0.2s ease;
}

.app-install-banner__button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.app-install-banner__button i {
  color: inherit;
  font-size: 21px;
}

.app-install-banner__button--download {
  color: #122347 !important;
  background: #c89a3e;
  border-color: #c89a3e;
}

.app-install-banner__button--download:hover {
  background: #dbb25b;
  border-color: #dbb25b;
}

.app-install-banner__button {
  cursor: pointer;
}

.app-install-banner__button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

@media (max-height: 500px) {
  .app-install-banner__card {
    gap: 12px;
    padding-top: 18px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  .app-install-banner__logo-wrap {
    width: 52px;
    height: 52px;
  }

  .app-install-banner__logo {
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-install-banner,
  .app-install-banner__button {
    transition-duration: 0.01ms;
  }
}
