/* Site-wide promo bar (templates/site/partials/promo-bar.html; Paul, 27 Nov 2026). Self-contained: loaded by public
   pages (site.css) and order sheets (account.css) alike, so it reads no design token. One row at every width from
   320 px: under 640 px the "· code" label goes and the deal shortens (−20%). The code chip is >= 32 px tall.
   Motion: a slow drift of the green and a light sweep every few seconds; none with prefers-reduced-motion. */
.rs-promo {
  position: relative; z-index: 1; overflow: hidden; isolation: isolate;
  color: #fff; background: linear-gradient(100deg, #064D30 0%, #0A7A4A 35%, #0E8F57 50%, #0A7A4A 65%, #064D30 100%);
  background-size: 220% 100%; animation: rs-promo-drift 14s ease-in-out infinite alternate;
  font: 600 13px/1.2 "Geologica", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  letter-spacing: .02em;
}
.rs-promo::after { /* the sweep */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent 0 40%, rgb(255 255 255 / .16) 50%, transparent 60% 100%);
  transform: translateX(-100%); animation: rs-promo-sweep 6s cubic-bezier(.4, 0, .2, 1) 1s infinite;
}
.rs-promo__in {
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: nowrap;
  min-height: 44px; margin: 0 auto; padding: 6px 12px; max-width: 1440px; white-space: nowrap;
}
.rs-promo__deal { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.rs-promo__title { font-weight: 800; letter-spacing: .06em; }
.rs-promo__off { color: #C9FFE0; font-weight: 700; }
.rs-promo__dot { opacity: .6; }
.rs-promo__lbl { font-weight: 500; opacity: .85; }
.rs-promo__narrow { display: none; }

.rs-promo__code {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px 0 12px; margin: 0;
  border: 1.5px dashed rgb(255 255 255 / .7); border-radius: 999px; background: rgb(255 255 255 / .12); color: #fff;
  font: inherit; font-weight: 800; letter-spacing: .08em; cursor: pointer; flex: none;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.rs-promo__code:hover { background: rgb(255 255 255 / .22); border-color: #fff; }
.rs-promo__code:active { transform: scale(.97); }
.rs-promo__code:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.rs-promo__stack { display: grid; }
.rs-promo__stack > span { grid-area: 1 / 1; text-align: center; }
.rs-promo__ok { visibility: hidden; letter-spacing: .04em; }
.rs-promo__code.is-copied { background: #fff; color: #075E3A; border-style: solid; border-color: #fff; }
.rs-promo__code.is-copied .rs-promo__c { visibility: hidden; }
.rs-promo__code.is-copied .rs-promo__ok { visibility: visible; }
.rs-promo__ic { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; flex: none; }
.rs-promo__live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 639.98px) {
  .rs-promo__wide { display: none; }
  .rs-promo__narrow { display: inline; }
  .rs-promo__in { gap: 10px; padding-inline: 10px; }
}
@media (max-width: 359.98px) {
  .rs-promo { font-size: 12px; letter-spacing: .01em; }
  .rs-promo__in { gap: 8px; padding-inline: 8px; }
  .rs-promo__deal { gap: 6px; }
  .rs-promo__title { letter-spacing: .03em; }
  .rs-promo__code { letter-spacing: .04em; padding: 0 10px; }
  .rs-promo__ic { display: none; }
}

@keyframes rs-promo-drift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes rs-promo-sweep { 0% { transform: translateX(-100%); } 45%, 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  .rs-promo { animation: none; background-position: 50% 50%; }
  .rs-promo::after { animation: none; display: none; }
  .rs-promo__code { transition: none; }
}
@media print { .rs-promo { display: none; } }
