/* ============================================================
   Better Promotion — "Black Friday Bundle" design
   Banner (.pbb) and exit popup (.pbx): gold on dark brown.
   ============================================================ */

/* ---------- Banner ---------- */

.pbb {
  position: relative; width: 100%; box-sizing: border-box;
  padding: 14px 64px 14px 20px;
  background: linear-gradient(90deg, #1A1309 0%, #261D0E 35%, #3A2B12 70%, #261D0E 100%);
  border-bottom: 1px solid #4A3A1C;
  color: #FCFCFC; font-family: "Inter", system-ui, sans-serif; line-height: 1.3;
}
.pbb *, .pbb *::before, .pbb *::after { box-sizing: border-box; }
.pbb-row {
  max-width: 1240px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 40px;
}

/* Offer */
.pbb-offer { display: flex; align-items: center; gap: 14px; }
.pbb-icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: #F7C842; color: #19181D; border: 2px solid #19181D; transform: rotate(-8deg);
}
.pbb-headline {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 14px;
  font-weight: 800; font-size: clamp(18px, 4.6cqi, 22px); letter-spacing: -.02em; text-align: center;
}
.pbb-sep { width: 1px; height: 26px; background: #6B5326; }
.pbb-eyebrow:empty, .pbb-eyebrow:empty + .pbb-sep { display: none; }
.pbb-pre { font-weight: 600; }
.pbb-hl { color: #F7C842; font-weight: 900; font-size: clamp(24px, 6cqi, 30px); letter-spacing: -.04em; }
.pbb-deal span:empty { display: none; }

/* Save up to */
.pbb-save {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 14px;
  border: 1.5px dashed #6B5326; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #B9AC92;
}
.pbb-save strong { font-size: 18px; letter-spacing: 0; color: #F7C842; }

/* Coupons */
.pbb-coupons { display: flex; align-items: center; gap: 10px; }
.pbb-apply { font-size: 14px; font-weight: 600; color: #E8DFCB; white-space: nowrap; }
.pbb-apply:empty { display: none; }
.pbb-code-item { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.pbb-code-tag { font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #F7C842; line-height: 1; }
.pbb-code-tag:empty { display: none; }
.pbb-code {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 7px 12px;
  border: 1.5px dashed #F7C842; border-radius: 9px; background: #120D06; color: #FCFCFC;
  font: inherit; font-size: 15px; font-weight: 800; letter-spacing: .12em; cursor: pointer;
}
.pbb-code:hover, .pbb-code:focus-visible { border-style: solid; }
.pbb-code svg { color: #F7C842; flex-shrink: 0; }
.pbb-ic-check { display: none; }
.pbb-code.pb-copied { border: 1.5px solid #A3E635; }
.pbb-code.pb-copied .pbb-ic-copy { display: none; }
.pbb-code.pb-copied .pbb-ic-check { display: block; color: #A3E635; }

/* Countdown */
.pbb-timer { display: flex; align-items: center; gap: 6px; }
.pbb-unit {
  width: 50px; padding: 6px 0 5px; border-radius: 9px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  background: #120D06; border: 1px solid #6B5326;
}
.pbb-unit b { font-weight: 800; font-size: 20px; line-height: 1; font-variant-numeric: tabular-nums; }
.pbb-unit i { margin-top: 3px; font-size: 9px; font-style: normal; letter-spacing: .1em; color: #B9AC92; }
.pbb-colon { color: #8F7A4A; font-weight: 800; }
.pbb-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Button: tilted gold pill with an offset shadow */
.pbb-cta {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 50px; padding: 6px 6px 6px 18px; border-radius: 999px;
  background: #F7C842; color: #19181D; border: 3px solid #19181D; box-shadow: 4px 4px 0 #D9811E;
  font-weight: 800; font-size: clamp(14px, 3.8cqi, 16px); letter-spacing: -.01em; white-space: nowrap; text-decoration: none;
  transform: rotate(-1.5deg); transition: transform .15s ease, box-shadow .15s ease;
}
.pbb-cta:hover { color: #19181D; transform: rotate(-1.5deg) translate(-1px, -1px); box-shadow: 6px 6px 0 #D9811E; }
.pbb-cta:active { transform: rotate(-1.5deg) translate(2px, 2px); box-shadow: 2px 2px 0 #D9811E; }
.pbb-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  background: #19181D; color: #F7C842; font-size: 13px; font-weight: 800;
}
.pbb-pill:has(> span:empty) { display: none; }

/* Close */
.pbb-x {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; margin: 0; padding: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid #8F7A4A; background: transparent; color: #E8DFCB; cursor: pointer;
}
.pbb-x:hover { background: rgba(247, 200, 66, .12); border-color: #F7C842; color: #FFFFFF; }
.pbb a:focus-visible, .pbb button:focus-visible { outline: 3px solid #FFE08A; outline-offset: 3px; }

/* Responsive (relative to the banner's own width) */
@container (max-width: 1240px) {
  .pbb-pill { display: none; }
  .pbb-row { column-gap: 28px; }
  .pbb-cta { padding: 6px 22px; }
}
@container (max-width: 600px) {
  .pbb { padding: 12px 48px 14px 14px; }
  .pbb-icon, .pbb-sep, .pbb-apply { display: none; }
  .pbb-x { top: 8px; right: 8px; transform: none; }
  .pbb-row { row-gap: 10px; }
  .pbb-unit { width: 42px; padding: 5px 0 4px; }
  .pbb-unit b { font-size: 17px; }
  .pbb-cta { min-height: 44px; font-size: 14px; padding: 6px 18px; }
}

/* ---------- Popup ---------- */

.pbp--bundle .pbp-overlay { background: #110d0ab8; }
.pbp-dialog.pbx {
  max-width: 444px; container-type: inline-size;
  border: 1px solid #69502d; border-radius: 20px;
  background: #261d10; color: #fff9e9;
  box-shadow: 0 24px 90px #120c07a0;
  font: 16px/1.4 system-ui, "Segoe UI", sans-serif;
}
.pbp-dialog.pbx::before, .pbp-dialog.pbx::after { display: none; }
.pbx p, .pbx h2 { margin: 0; }

.pbx .pbp-close { top: 12px; right: 12px; width: 39px; height: 39px; background: #261d10; border: 1px solid #bca77d7d; color: #fff9e9; }
.pbx .pbp-close:hover, .pbx .pbp-close:focus-visible { background: #49371a; transform: none; }
.pbx .pbp-close svg { width: 12px; height: 12px; } /* drawn ×: centres exactly, whatever the font */

.pbx-layout {
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; justify-items: center; align-items: center;
  gap: clamp(11px, 3cqw, 16px);
  min-height: 124.5cqw; /* the 4:5 card shape; grows if the content needs more */
  padding: clamp(19px, 7cqw, 33px) clamp(18px, 6cqw, 28px) clamp(16px, 6cqw, 28px);
  text-align: center; border-radius: inherit;
  background: radial-gradient(ellipse at 50% 48%, #a3611b55 0%, #432a110d 56%, transparent 72%), #21180e;
}

.pbx .pbx-eyebrow { margin-bottom: 7px; color: #ffcc4f; font-size: .74rem; letter-spacing: .12em; font-weight: 800; text-transform: uppercase; }
.pbx-eyebrow:empty { display: none; }
.pbx-title {
  max-width: 19ch; margin-inline: auto;
  font-size: clamp(1.34rem, 7.65cqw, 2.13rem); line-height: 1.06; letter-spacing: -.045em; font-weight: 850;
  text-wrap: balance; color: #fff9e9;
}
.pbx-hl { color: #fff9e9; background: linear-gradient(transparent 58%, #2c50d4 58%); padding-inline: .04em; white-space: nowrap; }

/* Tilted gold offer card */
.pbx-card {
  display: grid; place-items: center; width: min(100%, 330px);
  padding: clamp(9px, 3.5cqw, 15px) 14px;
  border: 1px solid #ffe39a; border-radius: 13px;
  background: linear-gradient(143deg, #ffe076, #ffc547 70%, #f9a935);
  color: #241707;
  box-shadow: 0 0 12px #ffd16366, 0 0 46px #ffb23866, 0 9px 0 -3px #a66627;
  transform: rotate(-4deg);
}
.pbx-fit { width: 100%; display: flex; flex-direction: column; align-items: center; }
.pbx-pre { font-size: clamp(.7rem, 3cqw, .85rem); font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.pbx-pre:empty { display: none; }
.pbx-discount {
  display: flex; align-items: baseline; justify-content: center; gap: .1em;
  font-family: Arial, Helvetica, sans-serif; font-size: clamp(3rem, 22.5cqw, 6.2rem);
  font-weight: 900; line-height: .92; letter-spacing: -.035em; white-space: nowrap;
}
.pbx-discount strong { font-size: 1em; font-weight: 900; }
.pbx-discount span { font-size: .3em; font-weight: 900; letter-spacing: -.035em; text-transform: uppercase; }
.pbx-discount span:empty, .pbx-discount strong:empty { display: none; }
.pbx-product {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; margin-top: 8px;
  font-size: clamp(.58rem, 2.65cqw, .75rem); font-weight: 850; letter-spacing: .08em; text-transform: uppercase;
}
.pbx-product img { width: 18px; height: 18px; border-radius: 4px; object-fit: contain; }
.pbx-product span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbx-product span:empty { display: none; }

/* Footer */
.pbx-foot { width: min(100%, 315px); }
.pbx-text { font-size: min(.875rem, 3.65cqw); font-weight: 700; text-wrap: balance; }
.pbx-text:empty { display: none; }
.pbx .pbx-save { margin-top: 6px; font-size: .8rem; color: #d5c4a7; }
.pbx-save strong { color: #ffcc4f; }

.pbx-coupons { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.pbx-code-item { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.pbx-code-tag { font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #ffcc4f; }
.pbx-code-tag:empty { display: none; }
.pbx-code {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 10px;
  border: 1px dashed #ffcf55aa; border-radius: 8px; background: #392b18; color: #fff9e9;
  font: inherit; font-size: .9rem; font-weight: 800; letter-spacing: .1em; cursor: pointer;
}
.pbx-code:hover { border-style: solid; }
.pbx-code svg { color: #ffcc4f; flex-shrink: 0; }
.pbx-ic-check { display: none; }
.pbx-code.pb-copied { border: 1px solid #A3E635; }
.pbx-code.pb-copied .pbx-ic-copy { display: none; }
.pbx-code.pb-copied .pbx-ic-check { display: block; color: #A3E635; }

.pbx .pbx-deadline { margin-top: 4px; color: #d5c4a7; font-size: .88rem; }
.pbx-deadline:empty { display: none; }
.pbx-clock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(4px, 1.8cqw, 8px); margin-top: 8px; }
.pbx-unit {
  display: grid; justify-items: center; padding-block: 5px 4px;
  border: 1px solid #ffcf551c; border-radius: 7px; background: #392b18;
  color: #dec9a4; font-size: .61rem; letter-spacing: .04em;
}
.pbx-unit b { color: #fff9e9; font-size: clamp(1rem, 5.2cqw, 1.45rem); font-variant-numeric: tabular-nums; font-weight: 750; line-height: 1.12; }
.pbx-unit i { font-style: normal; }

.pbx-cta {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 44px; margin-top: 13px; padding: 9px 17px 10px;
  border: 1px solid #ffd578; border-radius: 28px; background: #fbc742; color: #21180b;
  box-shadow: 2px 3px #ad641b, 0 0 22px #ffbb3829;
  font-size: .96rem; font-weight: 850; text-decoration: none;
}
.pbx-cta:hover { background: #ffda70; color: #21180b; }
.pbx :focus-visible { outline: 3px solid #6996ff; outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  .pbb-cta { transition: none; }
}
