/* ==========================================================================
   App download promo - top bar + bottom sheet (mobile only)
   ========================================================================== */

.app-promo-bar,
.app-promo-sheet {
  display: none;
}

/* hard stop on desktop, whatever the JS decides */
@media (min-width: 992px) {
  .app-promo-bar,
  .app-promo-sheet {
    display: none !important;
  }
}

/* --------------------------------------------------------- top sticky bar */
.app-promo-bar.is-visible {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f2f4f7;
  border-bottom: 1px solid #e4e7e9;
  position: relative;
  z-index: 1001;
}

.app-promo-bar__icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid #e4e7e9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.app-promo-bar__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.app-promo-bar__text {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.25;
}

.app-promo-bar__text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-text-color, #111827);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-promo-bar__text span {
  display: block;
  font-size: 11px;
  color: var(--muted, #6b7280);
}

.app-promo-bar__btn {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--primary-color, #009dab);
  background: #fff;
  border: 1px solid var(--primary-color, #009dab);
  text-decoration: none;
  white-space: nowrap;
}

.app-promo-bar__btn:hover,
.app-promo-bar__btn:focus {
  color: #fff;
  background: var(--primary-color, #009dab);
  text-decoration: none;
}

.app-promo-bar__close {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

/* ------------------------------------------------------- bottom sheet */
.app-promo-sheet.is-visible {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.app-promo-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.app-promo-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 0 20px calc(22px + env(safe-area-inset-bottom, 0px));
  text-align: center;
  box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.18);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.app-promo-sheet.is-open .app-promo-sheet__backdrop {
  opacity: 1;
}

.app-promo-sheet.is-open .app-promo-sheet__panel {
  transform: translateY(0);
}

.app-promo-sheet__logo {
  width: 76px;
  height: 76px;
  margin: -38px auto 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.app-promo-sheet__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.app-promo-sheet__eyebrow {
  margin: 0 0 2px;
  font-size: 15px;
  color: var(--primary-text-color, #111827);
}

.app-promo-sheet__title {
  margin: 0 0 20px;
  font-size: 26px;
  font-weight: 700;
  color: var(--primary-text-color, #111827);
}

.app-promo-sheet__cta {
  display: block;
  width: 100%;
  padding: 15px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--primary-btn-color, #009dab);
  color: var(--text-white, #fff);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.app-promo-sheet__cta:hover,
.app-promo-sheet__cta:focus {
  color: var(--text-white, #fff);
  text-decoration: none;
  opacity: 0.92;
}

.app-promo-sheet__skip {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 14px 8px 2px;
  border: 0;
  background: transparent;
  color: var(--primary-color, #009dab);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

/* stop the page behind the sheet from scrolling */
body.app-promo-lock {
  overflow: hidden;
}
