/* /sale-banner.css */

/* Root banner */
.sale-banner,
.twf-sale {
  --sale-red: #ff2d55;        /* primary red */
  --sale-red-2: #c61e3a;      /* darker red */
  --sale-bg: rgba(255,45,85,.09);
  --sale-border: rgba(255,45,85,.35);

  margin: 14px auto 18px;
  border: 1px solid var(--sale-border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,45,85,.10), rgba(255,45,85,.04));
  box-shadow:
    0 0 0 2px rgba(255,45,85,.08) inset,
    0 10px 28px rgba(0,0,0,.35),
    0 0 20px rgba(255,45,85,.2);
}

/* Inner container (center everything + stacked) */
.sale-banner__inner,
.twf-sale__inner {
  display: flex;
  flex-direction: column;             /* stacked lines */
  align-items: center;                /* center horizontally */
  justify-content: center;            /* center vertically within */
  gap: 10px;
  padding: 12px 14px;
  text-align: center;                 /* center text */
}

/* Left section shells (kept for compatibility with your old markup) */
.sale-banner__left { display:flex; align-items:center; gap:12px; min-width:0; }

/* Badge (optional) */
.sale-badge {
  display:inline-grid; place-items:center;
  width:32px; height:32px; border-radius:999px;
  color:#fff; background: var(--sale-red);
  border: 1px solid var(--sale-red-2);
  font-weight: 800; font-size: 12px; letter-spacing:.6px;
  box-shadow: 0 0 14px rgba(255,45,85,.45);
}

/* Text blocks */
.sale-texts { min-width:0; }

.sale-head,
.twf-sale__text {
  color:#fff;
  font-weight:800;
  line-height:1.2;
  font-size: 15px;
}

.sale-sub,
.twf-sale__sub {
  color:#ffefef;
  opacity:.85;
  margin-top:2px;
  font-size:14px;
}

/* Right section (CTA / X) */
.sale-banner__right { display:flex; align-items:center; gap:10px; flex-shrink:0; }

/* CTA (kept for future use) */
.sale-cta {
  color:#000; background:#fff; border:1px solid #fff;
  padding:8px 12px; border-radius:999px; font-weight:700; text-decoration:none;
}
.sale-cta:hover { filter: brightness(.95); }

/* Dismiss button (if you ever re-enable it) */
.sale-x {
  appearance:none; cursor:pointer;
  color:#fff; background:transparent; border:1px solid var(--sale-border);
  border-radius:10px; padding:6px 8px; line-height:1; font-weight:700;
}
.sale-x:hover { background: rgba(255,45,85,.12); }

/* ===== Countdown additions ===== */

/* wrapper that holds “Time left:” + clock */
.sale-clock-wrap,
.twf-sale__clock-wrap {
  display: flex;
  gap: 8px;
  align-items: baseline;
  justify-content: center;
  margin-top: 2px;
}

/* label text */
.sale-clock-label,
.twf-sale__clock-label {
  color: #ffb3b3;
  font-size: 13px;
  letter-spacing: .2px;
}

/* actual H:MM:SS (hours can exceed 24) */
.sale-clock,
.twf-sale__clock {
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .5px;
  color: #ffffff;
  padding: 2px 10px;
  border-radius: 8px;
  background: rgba(255, 40, 40, 0.10);
  border: 1px solid rgba(255, 80, 80, 0.28);
  box-shadow: 0 0 16px rgba(255, 55, 55, 0.08) inset;
}

/* Responsive tidy */
@media (max-width:720px){
  .sale-banner__inner,
  .twf-sale__inner {
    gap:10px;
  }
  .sale-banner__right { justify-content: center; }
}
