/* ============================================================
   Stay Announcement Bar — front-end styles
   Colours are driven by --sab-bg and --sab-color CSS custom
   properties set as inline styles on .sab-topbar so they can
   be changed from the settings page without editing CSS.
   ============================================================ */

.sab-topbar {
  background: var(--sab-bg, #C4972A);
  color: var(--sab-color, #fff);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  padding: 10px 0;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.sab-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px 0 16px; /* right padding reserves space for close button */
}

/* ── Text block ────────────────────────────────────────────── */
.sab-topbar__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.35;
}

.sab-topbar__text {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
}

.sab-topbar a {
  color: var(--sab-color, #fff);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Close button ──────────────────────────────────────────── */
.sab-topbar__close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--sab-color, #fff);
  opacity: .7;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .2s, background .2s;
  flex-shrink: 0;
  line-height: 1;
}

.sab-topbar__close:hover {
  opacity: 1;
  background: rgba(0,0,0,.12);
}

/* ── Timer / clock ─────────────────────────────────────────── */
.sab-topbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.sab-countdown {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.sab-countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0,0,0,.15);
  border-radius: 4px;
  padding: 3px 8px;
  min-width: 44px;
}

.sab-countdown__num {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .02em;
}

.sab-countdown__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .75;
  line-height: 1;
}

.sab-countdown__sep {
  font-size: 18px;
  font-weight: 900;
  opacity: .6;
  margin-bottom: 8px;
}

.sab-countdown__tz {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  opacity: .7;
  margin-left: 4px;
  text-transform: uppercase;
}

.sab-countdown.is-expired { display: none; }

/* ── Mobile: stack text above timer ───────────────────────── */
@media (max-width: 600px) {
  .sab-topbar__inner {
    flex-direction: column;
    gap: 6px;
    padding: 0 32px;
    text-align: center;
  }

  .sab-topbar__close {
    top: 8px;
    transform: none;
  }

  .sab-countdown__unit { min-width: 36px; padding: 2px 6px; }
  .sab-countdown__num  { font-size: 14px; }
  .sab-countdown__sep  { font-size: 14px; }
}
