/* ═══════════════════════════════════════════════════════════════════
   Sticky Promotional Banner — Vanilla CSS
   Replaces all Tailwind utility classes for the promo popup + tab
   ═══════════════════════════════════════════════════════════════════ */

/* ── Main Banner ──────────────────────────────────────────────────── */
#sticky-promo-banner {
  position: fixed;
  bottom: 1.5rem;                          /* bottom-6 */
  right: 1.5rem;                           /* right-6 */
  z-index: 250;
  max-width: 24rem;                        /* max-w-sm */
  width: calc(100% - 2rem);
  background: linear-gradient(to bottom right, #6366f1, #a855f7, #d946ef);
  border-radius: 1rem;                     /* rounded-2xl */
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
  padding: 1.25rem;                        /* p-5 */
  border: 1px solid rgba(255, 255, 255, .2);
  transition: transform .7s ease, opacity .7s ease;
}

#sticky-promo-banner.is-hidden {
  transform: translateY(150%);
  opacity: 0;
  pointer-events: none;
}

#sticky-promo-banner.is-off {
  display: none;
}

@media (min-width: 640px) {
  #sticky-promo-banner {
    padding: 1.5rem;                       /* sm:p-6 */
  }
}

/* ── Close Button ─────────────────────────────────────────────────── */
#close-sticky-promo {
  position: absolute;
  top: .75rem;
  right: .75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .25rem;
  color: #fff;
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 9999px;
  cursor: pointer;
  transition: color .2s, background .2s;
  line-height: 0;
}

#close-sticky-promo:hover {
  color: rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .3);
}

#close-sticky-promo svg {
  width: 1rem;
  height: 1rem;
}

/* ── Banner Content ───────────────────────────────────────────────── */
.promo-banner__body {
  text-align: center;
  padding-top: .5rem;
}

.promo-banner__title {
  font-weight: 700;
  font-size: 1.25rem;                     /* text-xl */
  line-height: 1.25;
  color: #fff;
  margin: 0 0 .5rem;
}

@media (min-width: 640px) {
  .promo-banner__title {
    font-size: 1.5rem;                    /* sm:text-2xl */
  }
}

.promo-banner__desc {
  font-size: .875rem;                     /* text-sm */
  color: rgba(255, 255, 255, .9);
  line-height: 1.4;
  margin: 0 0 1.25rem;
}

/* ── CTA Row ──────────────────────────────────────────────────────── */
.promo-banner__cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-bottom: .75rem;
}

.promo-banner__cta-row .promo-btn {
  flex: 1;
  display: inline-block;
  padding: .625rem .75rem;
  border-radius: .75rem;                  /* rounded-xl */
  font-size: .75rem;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1);
  transition: background .2s, color .2s;
}

@media (min-width: 640px) {
  .promo-banner__cta-row .promo-btn {
    font-size: .875rem;
  }
}

/* Dark button — Install Extension */
.promo-btn--dark {
  background: #1e293b;                    /* slate-800 */
  color: #fff;
  font-weight: 600;
  border: 1px solid #334155;              /* slate-700 */
}

.promo-btn--dark:hover {
  background: #0f172a;                    /* slate-900 */
}

/* Yellow button — Use Web Tool */
.promo-btn--yellow {
  background: #facc15;                    /* yellow-400 */
  color: #0f172a;
  font-weight: 700;
  border: 1px solid #fde047;             /* yellow-300 */
}

.promo-btn--yellow:hover {
  background: #fde047;                    /* yellow-300 */
}

/* "Or" separator */
.promo-banner__or {
  color: #fff;
  font-weight: 500;
  font-size: .875rem;
  padding: 0 .25rem;
  flex-shrink: 0;
}

/* Footer line */
.promo-banner__footer {
  font-size: 11px;
  color: rgba(255, 255, 255, .8);
  font-weight: 500;
  letter-spacing: .05em;
  text-align: center;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════════
   Minimized Tab
   ══════════════════════════════════════════════════════════════════ */
#minimized-promo-tab {
  position: fixed;
  bottom: 0;
  right: 1.5rem;
  z-index: 240;
  display: flex;
  align-items: stretch;                    /* equal-height children */
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  transition: transform .5s ease;
}

#minimized-promo-tab.is-hidden {
  transform: translateY(100%);
}

#minimized-promo-tab:hover {
  transform: translateY(-1px);
}

/* When hidden + hovered, keep hidden (hidden wins) */
#minimized-promo-tab.is-hidden:hover {
  transform: translateY(100%);
}

.promo-tab__label {
  background: linear-gradient(to right, #d946ef, #f43f5e);
  color: #fff;
  font-weight: 700;
  font-size: .75rem;
  padding: .625rem 1rem;
  border-top-left-radius: .75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1);
  border-top: 1px solid rgba(255, 255, 255, .2);
  border-left: 1px solid rgba(255, 255, 255, .2);
  white-space: nowrap;
}

.promo-tab__icon {
  background: #0f172a;
  color: #fff;
  padding: .625rem;
  border-top-right-radius: .75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1);
  border-top: 1px solid #334155;
  border-right: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.promo-tab__icon svg {
  width: 1rem;
  height: 1rem;
}
