/* ScreenXX (Event Center-backed) — self-contained theme. No dependency on
 * the 2025 site's CSS. Bootstrap 5 (CDN) supplies grid/utilities/components;
 * this file only carries the ScreenXX brand skin. */

:root {
  --sx-black: #000000;
  --sx-dark: #2a2f3b;
  --sx-dark-2: #323741;
  --sx-gold: #FFD700;
  --sx-gold-2: #ffcc00;
  --sx-red: #fc0022;
  --sx-white: #ffffff;
  --sx-muted: #b9bcc4;

  /* Three bars, used as a mask so the colour stays a token (see .navbar-toggler-icon). */
  --sx-burger: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

* { box-sizing: border-box; }

html, body {
  background: var(--sx-black);
  color: var(--sx-white);
  font-family: 'Open Sans', 'Lato', sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .sx-heading {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

a { color: var(--sx-gold-2); text-decoration: none; }
a:hover { color: var(--sx-gold); text-decoration: underline; }

.sx-container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---- Header / nav ---------------------------------------------------- */

.sx-header {
  background: var(--sx-black);
  border-bottom: 2px solid var(--sx-gold);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.sx-header .navbar-brand img { height: 52px; max-width: 100%; }

/* Below the lg breakpoint the bar is just logo + burger, and they belong on one
 * line with the burger hard right. Bootstrap's navbar wraps instead, which on a
 * 360px phone dropped the burger onto a second row at the left of the logo (the
 * logo alone is 269px wide). This row owns the full first line, so the collapsed
 * menu still wraps underneath it when opened. `display: contents` retires the
 * wrapper at lg and up, where brand and nav lay out as before. */
.sx-navbar-top {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.sx-navbar-top .navbar-brand { min-width: 0; margin-right: 0; }
.sx-navbar-top .navbar-toggler { flex: 0 0 auto; }

@media (min-width: 992px) {
  .sx-navbar-top { display: contents; }
}

@media (max-width: 767px) {
  /* Room to breathe next to the burger on a narrow phone. */
  .sx-header .navbar-brand img { height: 40px; }
}

.sx-header .navbar-toggler {
  border-color: var(--sx-gold);
  padding: 0.35rem 0.6rem;
}
.sx-header .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.35); }

/* Bootstrap's burger glyph is a background-image SVG stroked near-black, so it
 * is invisible on this header. A background-image cannot read a CSS variable,
 * so the glyph becomes a mask and the colour comes from the brand token. */
.sx-header .navbar-toggler-icon {
  background-image: none;
  background-color: var(--sx-gold);
  -webkit-mask: var(--sx-burger) center / 100% 100% no-repeat;
  mask: var(--sx-burger) center / 100% 100% no-repeat;
}

.sx-header .navbar-nav .nav-link {
  color: var(--sx-white);
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  padding: 0.6rem 0.9rem;
}

/* Eight items sit on one line on a laptop; tighten them between the lg
 * breakpoint and ~1300px so "The Summit" / "Why ScreenXX" never wrap. */
@media (min-width: 992px) {
  .sx-header .navbar-nav .nav-link { white-space: nowrap; }
}

@media (min-width: 992px) and (max-width: 1300px) {
  .sx-header .navbar-brand img { height: 42px; }
  .sx-header .navbar-nav .nav-link { font-size: 0.78rem; letter-spacing: 0.6px; padding: 0.5rem 0.55rem; }
  .sx-header .btn-sx-cta { padding: 0.45rem 0.85rem; }
}

.sx-header .navbar-nav .nav-link:hover,
.sx-header .navbar-nav .nav-link.active {
  color: var(--sx-gold);
}

.sx-header .btn-sx-cta {
  background: var(--sx-red);
  color: var(--sx-white);
  border: none;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
}
.sx-header .btn-sx-cta:hover { background: #d4001d; color: #fff; }

/* Site-wide hero banner (EC admin → Settings → Event → Banners). Full-bleed so
   the artwork is not letterboxed inside the page container; line-height:0 kills
   the inline-image descender gap under it. */
/* Visually hidden, still read by search engines and screen readers. Used for a
   heading whose text already appears inside the hero banner image. */
.sx-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sx-hero-banner {
  display: block;
  width: 100%;
  background: #000;
  line-height: 0;
}
.sx-hero-banner a {
  display: block;
}
.sx-hero-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.sx-banner {
  background: #7a1f00;
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ---- Hero -------------------------------------------------------------- */

.sx-hero {
  position: relative;
  padding: 110px 0 90px;
  text-align: center;
  border-bottom: 3px solid var(--sx-gold);
  background: var(--sx-black)
              radial-gradient(circle at 50% 20%, rgba(255, 215, 0, 0.16), rgba(0, 0, 0, 0) 62%);
  overflow: hidden;
}

/* There was an artwork slot here that loaded `assets/hero.jpg` and darkened it
 * with a gradient. The file was never supplied, so it 404'd on every home-page
 * view, and the slot is now redundant: the masthead is managed in the EC admin
 * (Settings → Event → Branding → Banners) and renders above the header. The
 * radial gold glow on .sx-hero is the whole background now. */

.sx-hero .sx-container { position: relative; z-index: 1; }

/* A hero carrying only buttons — its wording already lives in the masthead
 * artwork — is a call-to-action strip. At the full band's padding those buttons
 * sat in 215px of empty black on a phone and 263px on a desktop. */
.sx-hero-compact { padding: 34px 0 30px; }

.sx-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--sx-white);
  margin-bottom: 8px;
}

.sx-hero .sx-tagline {
  color: var(--sx-gold-2);
  font-size: 1.1rem;
  margin-bottom: 28px;
}

.btn-sx-primary {
  background: var(--sx-gold);
  color: var(--sx-black);
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 4px;
  border: none;
  display: inline-block;
}
.btn-sx-primary:hover { background: var(--sx-gold-2); color: var(--sx-black); }

.btn-sx-outline {
  background: transparent;
  color: var(--sx-white);
  border: 2px solid var(--sx-white);
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 28px;
  border-radius: 4px;
  display: inline-block;
}
.btn-sx-outline:hover { border-color: var(--sx-gold); color: var(--sx-gold); }

.btn-sx-danger {
  display: inline-block;
  background: transparent;
  color: var(--sx-muted);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.78rem;
  padding: 7px 14px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.btn-sx-danger:hover,
.btn-sx-danger:focus-visible {
  background: var(--sx-red);
  border-color: var(--sx-red);
  color: #fff;
}

/* ---- Sections ------------------------------------------------------- */

.sx-section { padding: 56px 0; }
.sx-section-alt { background: var(--sx-dark); }
.sx-section-title {
  color: var(--sx-white);
  border-left: 5px solid var(--sx-gold);
  padding-left: 14px;
  margin-bottom: 28px;
}

/* ---- Cards / tiles ---------------------------------------------------- */

.sx-card {
  background: var(--sx-dark-2);
  border: 1px solid rgba(255,215,0,0.15);
  border-radius: 8px;
  padding: 20px;
  height: 100%;
}
.sx-card h3, .sx-card h4 { color: var(--sx-gold-2); font-size: 1.05rem; }
.sx-card .sx-fee { color: var(--sx-white); font-weight: 700; font-size: 1.1rem; }
.sx-card p.sx-desc { color: var(--sx-muted); font-size: 0.92rem; }

/* ---- Card multi-select checkbox (awards.php) --------------------------- */

.sx-card-select {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sx-muted);
  font-size: 0.82rem;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  cursor: pointer;
  user-select: none;
}
.sx-card-select input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--sx-gold);
  cursor: pointer;
  flex-shrink: 0;
}
.sx-card-select:hover { color: var(--sx-gold-2); }

/* The whole card is a click target for selection (the corner box is small). */
.sx-card-selectable { cursor: pointer; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.sx-card-selectable:hover { border-color: rgba(255, 215, 0, 0.45); }

/* Selected card — gold border, glow, and a yellow corner badge. Toggled by
   cart-select.js adding `.is-selected` when the card's checkbox is checked. */
.sx-card.is-selected {
  position: relative;
  overflow: hidden;
  border-color: var(--sx-gold);
  box-shadow: 0 0 0 2px var(--sx-gold), 0 0 18px rgba(255, 215, 0, 0.28);
}
.sx-card.is-selected::after {
  content: "\2713  SELECTED";
  position: absolute;
  top: 0;
  right: 0;
  background: var(--sx-gold);
  color: var(--sx-black);
  font-family: 'Oswald', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 11px;
  border-bottom-left-radius: 8px;
}

/* ---- Floating "Selected Categories" bar (awards.php) -------------------- */

.sx-fab {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  background: var(--sx-dark-2);
  border-top: 2px solid var(--sx-gold);
  box-shadow: 0 -4px 18px rgba(0,0,0,0.45);
  padding: 12px 0;
}
.sx-fab.is-visible { display: block; }

body.sx-fab-active .sx-main { padding-bottom: 96px; }

.sx-fab-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sx-fab-summary {
  color: var(--sx-white);
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sx-fab-summary strong { color: var(--sx-gold-2); }
.sx-fab-sep { color: var(--sx-muted); }

.sx-fab-free {
  font-size: 0.85rem;
  color: var(--sx-gold-2);
  font-weight: 600;
  flex: 1 1 100%;
  order: 3;
}
.sx-fab-free-earned {
  color: #a9e8bb;
}

.sx-fab-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.sx-fab-btn { padding: 10px 20px; font-size: 0.85rem; }

@media (min-width: 768px) {
  .sx-fab-free { flex: 0 1 auto; order: 0; text-align: right; }
}

/* ---- Cart totals box (cart.php) ----------------------------------------- */

.sx-totals-box {
  background: var(--sx-dark-2);
  border: 1px solid rgba(255,215,0,0.15);
  border-radius: 8px;
  padding: 24px;
  max-width: 460px;
  margin-left: auto;
}
.sx-totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  color: var(--sx-white);
  font-size: 0.95rem;
}
.sx-totals-row.sx-totals-muted { color: var(--sx-muted); font-size: 0.85rem; }
.sx-totals-row.sx-totals-grand {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 8px;
  padding-top: 14px;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: 1.1rem;
  color: var(--sx-gold-2);
}
.sx-totals-estimate {
  color: var(--sx-muted);
  font-size: 0.78rem;
  font-style: italic;
  margin-top: 10px;
}
.sx-totals-free {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  background: rgba(255,215,0,0.12);
  border: 1px solid var(--sx-gold);
  color: var(--sx-gold-2);
}
.sx-totals-free.sx-totals-free-earned {
  background: rgba(31,138,61,0.18);
  border-color: #1f8a3d;
  color: #a9e8bb;
}

/* ---- Awards tabs ------------------------------------------------------- */

.sx-group-tabs .nav-link {
  color: var(--sx-white);
  background: var(--sx-dark-2);
  border: 1px solid rgba(255,255,255,0.1);
  margin-right: 6px;
  margin-bottom: 6px;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sx-group-tabs .nav-link.active {
  background: var(--sx-gold);
  color: var(--sx-black);
  border-color: var(--sx-gold);
}

/* ---- Forms ------------------------------------------------------------- */

.sx-form-box {
  background: var(--sx-dark-2);
  border: 1px solid rgba(255,215,0,0.15);
  border-radius: 8px;
  padding: 32px;
  max-width: 520px;
  margin: 0 auto;
}

.sx-form-box label, .form-label { color: var(--sx-white); font-weight: 600; }

.form-control, .form-select {
  background: #1c1f27;
  border: 1px solid #454b58;
  color: #fff;
}
.form-control:focus, .form-select:focus {
  background: #1c1f27;
  color: #fff;
  border-color: var(--sx-gold);
  box-shadow: 0 0 0 0.2rem rgba(255,215,0,0.25);
}
.form-control::placeholder { color: #7c8190; }
.form-text { color: var(--sx-muted); }

/* ---- Tables ------------------------------------------------------------ */

.sx-table {
  /* Bootstrap 5.3 paints every cell from these vars and they default to the
   * light theme, which is why the cart/checkout/dashboard/invoice tables came
   * out white on a black page. Setting the vars fixes all of them at once. */
  --bs-table-bg: transparent;
  --bs-table-color: var(--sx-white);
  --bs-table-border-color: rgba(255, 255, 255, 0.12);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.035);
  --bs-table-striped-color: var(--sx-white);
  --bs-table-hover-bg: rgba(255, 215, 0, 0.06);
  --bs-table-hover-color: var(--sx-white);
  --bs-table-active-bg: rgba(255, 215, 0, 0.10);
  --bs-table-active-color: var(--sx-white);
  color: var(--sx-white);
}
.sx-table th { color: var(--sx-gold-2); font-family: 'Oswald', sans-serif; text-transform: uppercase; font-size: 0.85rem; }
.sx-table, .sx-table td, .sx-table th { border-color: rgba(255,255,255,0.12); }

/* ---- Badges / status ---------------------------------------------------- */

.sx-badge { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; padding: 4px 10px; border-radius: 4px; font-size: 0.75rem; }
.sx-badge-paid, .sx-badge-confirmed, .sx-badge-submitted { background: #1f8a3d; color: #fff; }
.sx-badge-pending, .sx-badge-draft { background: var(--sx-gold-2); color: #000; }
.sx-badge-failed, .sx-badge-cancelled, .sx-badge-withdrawn { background: #6c6f77; color: #fff; }
.sx-badge-refunded, .sx-badge-locked { background: var(--sx-red); color: #fff; }

/* ---- Alerts / flash ------------------------------------------------------ */

.sx-flash { border-radius: 6px; padding: 12px 16px; margin-bottom: 16px; font-weight: 600; }
.sx-flash-error { background: rgba(252,0,34,0.15); border: 1px solid var(--sx-red); color: #ffb3bd; }
.sx-flash-success { background: rgba(31,138,61,0.18); border: 1px solid #1f8a3d; color: #a9e8bb; }
.sx-flash-info { background: rgba(255,215,0,0.12); border: 1px solid var(--sx-gold); color: var(--sx-gold-2); }

/* ---- Tabs (dashboard) ---------------------------------------------------- */

.sx-tabs .nav-link {
  color: var(--sx-white);
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sx-tabs .nav-link.active {
  color: var(--sx-black);
  background: var(--sx-gold);
}

/* ---- Footer -------------------------------------------------------------- */

.sx-footer {
  background: var(--sx-black);
  border-top: 2px solid var(--sx-gold);
  color: var(--sx-muted);
  padding: 40px 0 20px;
  margin-top: 60px;
  font-size: 0.9rem;
}
.sx-footer a { color: var(--sx-gold-2); }
.sx-footer h5 { color: var(--sx-gold); font-size: 1rem; margin-bottom: 12px; }
.sx-footer .sx-copy { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 24px; padding-top: 16px; font-size: 0.8rem; text-align: center; }

/* ---- Misc ----------------------------------------------------------------- */

.sx-qty-btn {
  width: 34px; height: 34px;
  background: var(--sx-dark-2);
  color: #fff;
  border: 1px solid #454b58;
  border-radius: 4px;
}

.sx-empty-state { text-align: center; padding: 60px 20px; color: var(--sx-muted); }

/* ---- Winners ------------------------------------------------------------- */

.sx-winner-item { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.sx-winner-item:last-child { border-bottom: none; }
.sx-winner-title { display: block; color: var(--sx-white); font-weight: 600; }
.sx-winner-sub { display: block; color: var(--sx-muted); font-size: 0.85rem; margin-top: 2px; }

/* ---- Jury gallery ---------------------------------------------------------- */

.sx-jury-card { text-align: center; }
.sx-jury-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  overflow: hidden;
  background: var(--sx-dark);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,215,0,0.15);
}
.sx-jury-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sx-jury-photo.is-fallback::before {
  content: attr(data-initials);
  color: var(--sx-gold-2);
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 700;
}
.sx-jury-card h3 { font-size: 1rem; margin-bottom: 4px; }
.sx-jury-card .sx-jury-designation { color: var(--sx-white); font-size: 0.88rem; }
.sx-jury-card .sx-jury-company { color: var(--sx-muted); font-size: 0.85rem; }

@media print {
  .sx-header, .sx-footer, .sx-no-print { display: none !important; }
  body, html { background: #fff !important; color: #000 !important; }
  .sx-invoice-box { color: #000 !important; }
  .sx-table {
    --bs-table-bg: #fff !important;
    --bs-table-color: #000 !important;
    --bs-table-border-color: #999 !important;
    color: #000 !important;
  }
  .sx-table th { color: #000 !important; }
}

@media (max-width: 767px) {
  .sx-hero { padding: 56px 0 40px; }
  /* Restated after the rule above, which would otherwise win on source order. */
  .sx-hero-compact { padding: 24px 0 22px; }
  .sx-form-box { padding: 22px; }
}

/* ---- 2026 content pages (big idea, prose, steps, pill lists) -------------- */

.sx-eyebrow {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--sx-gold-2);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.sx-hero-date {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--sx-muted);
  font-size: 0.9rem;
  margin-top: 12px;
}

/* A reading column, not a centred one — and it must start on exactly the same
 * left edge as every other band.
 *
 * `.sx-prose` sits on the SAME element as `.sx-container`, so the measure has to
 * go on the children, never on the box itself. Narrowing the box to 820px and
 * then fighting `.sx-container`'s `margin: 0 auto` breaks the alignment either
 * way: leave the auto margins and the band is centred, indenting it ~180px to
 * the RIGHT of the others; force `margin-left: 0` and the whole box goes flush
 * to the VIEWPORT edge, 130px to the LEFT of them (at a 1440px viewport).
 * Keeping the container box intact and capping the children gives a 820px
 * measure whose first character lines up with the bands above and below. */
.sx-prose { max-width: 1180px; }
.sx-prose > * { max-width: 820px; }
.sx-prose p { color: var(--sx-muted); font-size: 1rem; line-height: 1.8; margin-bottom: 18px; }

.sx-lead {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--sx-white) !important;
  line-height: 1.45 !important;
}

.sx-emphasis { color: var(--sx-white) !important; font-weight: 600; }

.sx-question {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.6rem;
  color: var(--sx-gold) !important;
  margin: 24px 0 !important;
}

.sx-pill-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sx-pill-list li,
.sx-pill-list .sx-pill {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  color: var(--sx-white);
  background: var(--sx-dark-2);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 999px;
  padding: 9px 18px;
}

.sx-steps {
  list-style: none;
  counter-reset: sx-step;
  padding: 0;
  margin: 0;
}

.sx-steps li {
  counter-increment: sx-step;
  position: relative;
  padding: 0 0 22px 62px;
  border-left: 1px solid rgba(255, 215, 0, 0.25);
  margin-left: 20px;
}

.sx-steps li:last-child { border-left-color: transparent; padding-bottom: 0; }

.sx-steps li::before {
  content: counter(sx-step);
  position: absolute;
  left: -20px;
  top: -4px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sx-black);
  border: 1px solid var(--sx-gold);
  color: var(--sx-gold);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sx-steps li h3 { font-size: 1rem; color: var(--sx-gold-2); margin-bottom: 6px; }

@media (max-width: 767px) {
  .sx-lead { font-size: 1.15rem; }
  .sx-question { font-size: 1.3rem; }
  .sx-steps li { padding-left: 48px; }
}

/* ---- Blocks rendered from an EC page-builder document ------------------- */

.sx-doc-btn { margin: 6px 10px 6px 0; }
.sx-doc-img { display: block; max-width: 100%; height: auto; border-radius: 6px; }
.sx-doc-divider { border: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); margin: 28px 0; }
.sx-pill-list .sx-pill { display: inline-block; margin: 0; }

/* A card built from Text blocks: first heading gold, paragraphs muted. */
.sx-card > h3, .sx-card > h4 { margin-bottom: 8px; }
.sx-card > p:last-child { margin-bottom: 0; }

.sx-bullet { position: relative; padding-left: 20px; }
.sx-bullet::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--sx-gold); }

/* ---- Cart / checkout summary column -------------------------------------- */

/* Cart page: items on the left, summary on the right, tops aligned. Without
 * this the full-width table left the whole lower-left of the page blank. */
.sx-cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 440px); gap: 32px; align-items: start; }
.sx-cart-grid .table-responsive { min-width: 0; }
.sx-cart-grid > .sx-summary-col { margin-top: 0; }

/* The totals box and the actions that act on it belong together; the actions
 * used to sit a few hundred pixels lower on the opposite side of the page. */
.sx-summary-col { max-width: 460px; margin-left: auto; }
.sx-summary-col .sx-totals-box { max-width: none; margin-left: 0; }
.sx-summary-col .sx-summary-actions { margin-top: 16px; display: grid; gap: 10px; }
.sx-summary-col .sx-summary-actions .btn-sx-primary,
.sx-summary-col .sx-summary-actions .btn-sx-outline { display: block; width: 100%; text-align: center; }
.sx-summary-col .sx-summary-actions form { display: block; }

@media (max-width: 991px) {
  .sx-cart-grid { grid-template-columns: 1fr; gap: 0; }
  .sx-summary-col { max-width: none; margin-left: 0; }
}

/* ---- Video blocks ------------------------------------------------------- */

/* A Video block on its own (not inside a phone) is a plain 16:9 embed. */
.sx-doc-video-wrap { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.sx-doc-video-wrap .sx-doc-video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
video.sx-doc-video { display: block; width: 100%; border-radius: 8px; background: #000; }

/* ---- Phone mockup (reel player) ---------------------------------------- *
 *
 * A handset playing the section's Video blocks back to back. The screen is
 * locked to 9:16 because the cover geometry below depends on it.
 */

.sx-phone-wrap { max-width: 320px; margin: 0 auto; }

.sx-phone-eyebrow {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.78rem;
  color: var(--sx-gold-2);
  text-align: center;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.sx-phone-eyebrow::before,
.sx-phone-eyebrow::after {
  content: '';
  flex: 0 0 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.65));
}
.sx-phone-eyebrow::after { background: linear-gradient(270deg, transparent, rgba(255, 215, 0, 0.65)); }

/* The handset: a dark bezel with a gold hairline and a soft gold glow. */
.sx-phone {
  position: relative;
  padding: 12px;
  border-radius: 44px;
  background: linear-gradient(160deg, #2a2a2a, #0d0d0d 55%, #202020);
  border: 1px solid rgba(255, 215, 0, 0.28);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65), 0 0 40px rgba(255, 215, 0, 0.10);
}

/* Speaker pill in the bezel. */
.sx-phone::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.16);
  z-index: 8;
  pointer-events: none;
}

/* Side buttons. */
.sx-phone::after {
  content: '';
  position: absolute;
  top: 118px;
  right: -2px;
  width: 3px;
  height: 58px;
  border-radius: 3px;
  background: rgba(255, 215, 0, 0.35);
  pointer-events: none;
}

.sx-phone-screen {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 34px;
  overflow: hidden;
  background: #000;
}

.sx-phone-stage {
  position: absolute;
  inset: 0;
  /* Clicks belong to the overlay controls, never to the provider's own UI. */
  pointer-events: none;
}

/* Cover: the iframe is made 16:9 and taller-than-wide-cropped, so a clip of any
 * aspect from 9:16 upwards fills the screen edge to edge. 316% is that geometry
 * for a 9:16 screen — (16/9) / (9/16) — not an arbitrary number. */
.sx-phone-stage .sx-phone-media {
  position: absolute;
  top: 0;
  left: 50%;
  width: 316%;
  height: 100%;
  transform: translateX(-50%);
  border: 0;
  display: block;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.sx-phone-stage .sx-phone-media.is-active { opacity: 1; }

/* A file plays in a <video>, which crops on its own. */
.sx-phone-stage video.sx-phone-media { width: 100%; left: 0; transform: none; object-fit: cover; }

/* Contain: show the whole frame instead, letterboxed on the black screen. */
.sx-phone-screen[data-sx-fit='contain'] .sx-phone-media { width: 100%; left: 0; transform: none; }
.sx-phone-screen[data-sx-fit='contain'] video.sx-phone-media { object-fit: contain; }

.sx-phone-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
  z-index: 7;
}
.sx-phone-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--sx-gold-2), var(--sx-gold));
  transition: width 0.2s linear;
}

.sx-phone-controls {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 6;
}
.sx-phone-controls-gap { flex: 1 1 auto; }

.sx-phone-btn {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.20);
  color: #fff;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.sx-phone-btn svg { width: 18px; height: 18px; fill: currentColor; }
.sx-phone-btn:hover,
.sx-phone-btn:focus-visible { background: rgba(0, 0, 0, 0.8); border-color: var(--sx-gold); color: var(--sx-gold); transform: scale(1.08); }

/* The mute control shows the crossed-out speaker until sound is on. */
.sx-phone-btn .sx-phone-icon-on { display: none; }
.sx-phone-btn.is-unmuted .sx-phone-icon-on { display: inline; }
.sx-phone-btn.is-unmuted .sx-phone-icon-off { display: none; }

.sx-phone-dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 6;
}
.sx-phone-dot {
  width: 22px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  transition: background 0.25s ease, width 0.25s ease;
}
.sx-phone-dot.is-active { background: var(--sx-gold); width: 34px; }

/* Shown only when no clip can play at all (all removed, private or blocked from
 * embedding) and by <noscript>. A list of links beats a black rectangle. */
.sx-phone-fallback {
  position: absolute;
  inset: 0;
  list-style: none;
  margin: 0;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  background: rgba(0, 0, 0, 0.9);
  z-index: 5;
}
.sx-phone-fallback a { color: var(--sx-gold-2); font-size: 0.9rem; }

@media (max-width: 991px) {
  .sx-phone-wrap { margin-top: 36px; }
}
