/* Xtreme HD IPTV — shop, product, checkout and confirmation pages.
   Loaded after xtreme-header.css (tokens, header, footer, buttons) through
   ndshop_theme_head(). Self-contained: the NindoTV checkout.css/shop.css
   are not loaded on Xtreme pages, so the combo-box mechanics used by
   checkout.js are reproduced here. */

/* ---------- Page scaffolding ---------- */
.xt-shop-page main { display: block; outline: none; }
.xt-narrow { max-width: 920px; }

.xt-band {
  background:
    radial-gradient(circle at 1px 1px, rgba(8, 120, 209, 0.10) 1px, transparent 0) 0 0 / 22px 22px,
    var(--xt-pale);
  border-bottom: 1px solid var(--xt-pale-2);
}
.xt-band--thin { padding: 22px 0 26px; margin-bottom: 32px; }

.xt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--xt-blue-hover);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.xt-eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--xt-blue); }
.xt-lead { margin: 0; color: var(--xt-muted); font-size: 18px; max-width: 62ch; }
.xt-hint { margin: 4px 0 0; color: var(--xt-muted); font-size: 14px; }
.xt-page-title { margin: 10px 0 0; font-size: clamp(28px, 4vw, 38px); font-weight: 800; }
.xt-section-title { margin: 0 0 28px; font-size: clamp(24px, 3vw, 30px); font-weight: 800; text-align: center; }
.xt-break { overflow-wrap: anywhere; word-break: break-word; }

/* ---------- Shop hero ---------- */
.xt-shop-hero { padding: 64px 0 96px; }
.xt-shop-hero__inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.xt-shop-hero h1 { margin: 0 0 16px; font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -0.035em; max-width: 18ch; }
.xt-shop-hero .xt-lead { margin: 0 auto; }
@media (max-width: 600px) { .xt-shop-hero { padding: 40px 0 72px; } .xt-lead { font-size: 16.5px; } }

.xt-plan-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--xt-pale-2);
  border-radius: var(--xt-pill);
  box-shadow: var(--xt-shadow-sm);
}
.xt-plan-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--xt-pill);
  color: var(--xt-navy);
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
}
.xt-plan-nav a:hover { background: var(--xt-blue); color: #fff; }
@media (max-width: 600px) { .xt-plan-nav { border-radius: var(--xt-r-lg); } }

/* ---------- Plan cards ---------- */
.xt-plans {
  list-style: none;
  margin: -56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr));
  gap: 24px;
  position: relative;
}
.xt-plan { display: flex; scroll-margin-top: calc(var(--xt-header-h) + 24px); }
.xt-plan__card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #fff;
  border: 1px solid var(--xt-line);
  border-radius: var(--xt-r-lg);
  box-shadow: var(--xt-shadow);
  overflow: hidden;
  transition: transform .25s var(--xt-ease), box-shadow .25s var(--xt-ease), border-color .25s ease;
}
.xt-plan__card:hover { transform: translateY(-4px); border-color: #bfdbfe; box-shadow: 0 22px 40px -18px rgba(15, 23, 42, 0.28); }
.xt-plan__card:focus-within { border-color: var(--xt-blue); }
.xt-plan--featured .xt-plan__card { border: 2px solid var(--xt-blue); }

.xt-plan__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--xt-pale);
  overflow: hidden;
}
.xt-plan__media, .xt-plan__media:hover { text-decoration: none; color: #fff; }
.xt-plan__media img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .4s var(--xt-ease); }
.xt-plan__card:hover .xt-plan__media img { transform: scale(1.03); }

.xt-badge {
  position: absolute;
  top: 12px; right: 12px;
  padding: 5px 12px;
  border-radius: var(--xt-pill);
  background: var(--xt-navy);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
}
.xt-badge--inline { position: static; display: inline-block; margin-bottom: 12px; background: var(--xt-blue); }

.xt-plan__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.xt-plan__period { margin: 0 0 4px; color: var(--xt-blue-hover); font-weight: 700; font-size: 15px; display: flex; align-items: baseline; gap: 6px; }
.xt-plan__period-value { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; color: var(--xt-navy); line-height: 1; }
.xt-plan__title { margin: 6px 0 8px; font-size: 19px; font-weight: 800; }
.xt-plan__title a { color: var(--xt-navy); text-decoration: none; }
.xt-plan__title a:hover { color: var(--xt-blue); }
.xt-plan__desc { margin: 0 0 16px; color: var(--xt-muted); font-size: 14.5px; }

.xt-plan__facts { list-style: none; margin: 0 0 20px; padding: 16px 0 0; border-top: 1px dashed var(--xt-line-strong); display: grid; gap: 9px; }
.xt-plan__facts li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--xt-navy-2); }
.xt-plan__facts svg { flex-shrink: 0; margin-top: 2px; color: var(--xt-blue); }

.xt-plan__foot { margin-top: auto; display: grid; gap: 14px; }

/* ---------- Price ---------- */
.xt-price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.xt-price__from { color: var(--xt-muted); font-size: 14px; font-weight: 600; }
.xt-price__amount { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; color: var(--xt-navy); line-height: 1.1; }
.xt-price__currency { font-weight: 700; color: var(--xt-muted); font-size: 15px; }
.xt-price__compare { color: var(--xt-muted); font-size: 15px; }
.xt-price__save { padding: 3px 9px; border-radius: var(--xt-pill); background: var(--xt-success-soft); color: var(--xt-success); font-size: 13px; font-weight: 800; }
.xt-price--lg .xt-price__amount { font-size: 42px; }

/* ---------- Media placeholder (no product image in the panel) ---------- */
.xt-media-ph {
  width: 100%; height: 100%;
  min-height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.18), transparent 45%),
    linear-gradient(135deg, var(--xt-blue) 0%, var(--xt-blue-hover) 55%, var(--xt-navy) 100%);
  text-align: center;
}
.xt-media-ph__brand { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.xt-media-ph__brand span { color: #bfdbfe; }
.xt-media-ph__value { font-size: clamp(44px, 9vw, 72px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.xt-media-ph__unit { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }

/* ---------- How it works / steps ---------- */
.xt-how { margin-top: 72px; padding: 64px 0; border-top: 1px solid var(--xt-pale-2); }
.xt-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
@media (max-width: 820px) { .xt-steps { grid-template-columns: 1fr; } }
.xt-step { position: relative; background: #fff; border: 1px solid var(--xt-pale-2); border-radius: var(--xt-r-lg); padding: 24px; }
.xt-step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--xt-blue);
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}
.xt-step h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.xt-step p { margin: 0; color: var(--xt-muted); font-size: 15px; }
.xt-steps--compact { grid-template-columns: 1fr; gap: 10px; margin-bottom: 20px; }
.xt-steps--compact .xt-step { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.xt-steps--compact .xt-step__num { margin: 0; flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px; font-size: 14px; }
.xt-steps--compact .xt-step p { color: var(--xt-navy-2); }

/* ---------- Help box ---------- */
.xt-help {
  margin-top: 56px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 26px 28px;
  border-radius: var(--xt-r-xl);
  background: var(--xt-navy);
  color: #cbd5e1;
}
.xt-help h2 { margin: 0 0 4px; color: #fff; font-size: 20px; font-weight: 800; }
.xt-help p { margin: 0; }
.xt-help__icon { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: rgba(8, 120, 209, 0.25); color: #93c5fd; }
.xt-help__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.xt-help .xt-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.xt-help .xt-btn--ghost:hover { border-color: #fff; color: #fff; }
.xt-help :where(a):focus-visible { box-shadow: 0 0 0 3px var(--xt-navy), 0 0 0 5px #93c5fd; }
@media (max-width: 820px) {
  .xt-help { grid-template-columns: 1fr; text-align: left; padding: 24px; }
  .xt-help__actions .xt-btn { flex: 1 1 200px; }
}

/* ---------- States (error, maintenance, empty, not found) ---------- */
.xt-state {
  max-width: 560px;
  margin: 56px auto;
  padding: 48px 28px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--xt-line);
  border-radius: var(--xt-r-xl);
  box-shadow: var(--xt-shadow);
}
.xt-state__icon { display: inline-flex; width: 64px; height: 64px; align-items: center; justify-content: center; border-radius: 20px; background: var(--xt-pale); color: var(--xt-blue); margin-bottom: 18px; }
.xt-state h1, .xt-state h2 { margin: 0 0 10px; font-size: 26px; font-weight: 800; }
.xt-state p { margin: 0 0 22px; color: var(--xt-muted); }

/* ---------- Breadcrumb ---------- */
.xt-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--xt-muted); }
.xt-breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #94a3b8; }
.xt-breadcrumb a { color: var(--xt-blue-hover); font-weight: 600; text-decoration: none; }
.xt-breadcrumb a:hover { text-decoration: underline; }
.xt-breadcrumb [aria-current] { color: var(--xt-navy); font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Product page ---------- */
.xt-product {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr);
  gap: 40px;
  align-items: start;
}
@media (max-width: 960px) { .xt-product { grid-template-columns: 1fr; gap: 28px; } }
.xt-product__main { display: grid; gap: 24px; min-width: 0; }
.xt-product__media {
  aspect-ratio: var(--nd-media-ratio, 16 / 9);
  max-height: min(70vh, 620px);
  border-radius: var(--xt-r-xl);
  overflow: hidden;
  background: var(--xt-pale);
  border: 1px solid var(--xt-pale-2);
}
.xt-product__media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.xt-product__buy { position: sticky; top: calc(var(--xt-header-h) + 20px); }
@media (max-width: 960px) { .xt-product__buy { position: static; order: -1; } .xt-product__main { order: 0; } }

.xt-panel {
  background: #fff;
  border: 1px solid var(--xt-line);
  border-radius: var(--xt-r-lg);
  padding: 26px;
}
.xt-panel--pale { background: var(--xt-pale); border-color: var(--xt-pale-2); }
.xt-panel__title { margin: 0 0 14px; font-size: 21px; font-weight: 800; }
.xt-panel__subtitle { margin: 22px 0 12px; font-size: 16px; font-weight: 800; }
@media (max-width: 600px) { .xt-panel { padding: 20px; } }

.xt-prose { color: var(--xt-navy-2); line-height: 1.7; overflow-wrap: anywhere; }
.xt-prose p { margin: 0 0 12px; }
.xt-prose ul, .xt-prose ol { margin: 0 0 12px; padding-inline-start: 22px; }
.xt-prose li { margin: 0 0 4px; }
.xt-prose > :last-child { margin-bottom: 0; }
.xt-prose a { color: var(--xt-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.xt-prose a:hover { color: var(--xt-blue-hover); }

.xt-checklist, .xt-infolist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.xt-checklist li, .xt-infolist li { display: flex; gap: 12px; align-items: flex-start; }
.xt-checklist svg { flex-shrink: 0; margin-top: 2px; padding: 3px; box-sizing: content-box; border-radius: 50%; background: var(--xt-pale); color: var(--xt-blue); }
.xt-infolist svg { flex-shrink: 0; color: var(--xt-blue); margin-top: 1px; }
.xt-infolist span { color: var(--xt-navy-2); }

.xt-buybox {
  background: #fff;
  border: 1px solid var(--xt-line);
  border-top: 5px solid var(--xt-blue);
  border-radius: var(--xt-r-xl);
  box-shadow: var(--xt-shadow);
  padding: 28px;
}
@media (max-width: 600px) { .xt-buybox { padding: 22px 18px; } }
.xt-buybox__title { margin: 0 0 8px; font-size: clamp(24px, 3vw, 30px); font-weight: 800; overflow-wrap: anywhere; }
.xt-buybox__desc { margin: 0 0 18px; color: var(--xt-muted); }
.xt-buybox__meta { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; color: var(--xt-navy-2); font-weight: 600; font-size: 15px; }
.xt-buybox__meta svg { color: var(--xt-blue); }
.xt-buybox__note, .xt-summary__note { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; color: var(--xt-muted); font-size: 13.5px; }
.xt-buybox__note svg, .xt-summary__note svg { flex-shrink: 0; margin-top: 2px; color: var(--xt-blue); }

/* ---------- Choice groups (radio cards) ---------- */
.xt-choice { margin: 22px 0 0; padding: 0; border: 0; min-width: 0; }
.xt-choice__legend { padding: 0; font-weight: 800; font-size: 15.5px; color: var(--xt-navy); }
.xt-options { display: grid; gap: 10px; margin-top: 12px; }
.xt-options--split { grid-template-columns: 1fr 1fr; }
@media (max-width: 420px) { .xt-options--split { grid-template-columns: 1fr; } }

.xt-option { position: relative; display: block; cursor: pointer; }
.xt-option input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  margin: 0;
}
.xt-option__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 10px 16px 10px 46px;
  border: 2px solid var(--xt-line);
  border-radius: var(--xt-r);
  background: #fff;
  position: relative;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
  box-sizing: border-box;
}
.xt-option__box::before {
  content: "";
  position: absolute;
  left: 16px; top: 50%;
  width: 18px; height: 18px;
  margin-top: -9px;
  border: 2px solid var(--xt-line-strong);
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.xt-option__main { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--xt-navy); }
.xt-option__main svg { color: var(--xt-blue); }
.xt-option__side { font-weight: 800; color: var(--xt-navy); white-space: nowrap; }
.xt-option:hover .xt-option__box { border-color: #93c5fd; }
.xt-option input:checked + .xt-option__box { border-color: var(--xt-blue); background: var(--xt-pale); }
.xt-option input:checked + .xt-option__box::before { border-color: var(--xt-blue); box-shadow: inset 0 0 0 4px #fff; background: var(--xt-blue); }
.xt-option input:focus-visible + .xt-option__box { box-shadow: var(--xt-focus); }
.xt-options--split .xt-option__box { padding-right: 12px; }
.xt-options--split .xt-option__main { font-size: 14.5px; line-height: 1.3; }

.xt-mini-summary { margin: 24px 0 18px; padding: 16px 18px; border-radius: var(--xt-r); background: var(--xt-pale); display: grid; gap: 8px; }
.xt-mini-summary div { display: flex; justify-content: space-between; gap: 12px; }
.xt-mini-summary dt { color: var(--xt-muted); }
.xt-mini-summary dd { margin: 0; font-weight: 700; text-align: right; }
.xt-mini-summary__total { padding-top: 8px; border-top: 1px solid var(--xt-pale-2); }
.xt-mini-summary__total dt, .xt-mini-summary__total dd { color: var(--xt-navy); font-weight: 800; font-size: 17px; }

/* ---------- Checkout layout ---------- */
.xt-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 1020px) { .xt-checkout { grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; } }
@media (max-width: 880px) { .xt-checkout { grid-template-columns: 1fr; } }
.xt-checkout__form { display: grid; gap: 20px; min-width: 0; }
.xt-checkout__summary { position: sticky; top: calc(var(--xt-header-h) + 20px); min-width: 0; }
@media (max-width: 880px) { .xt-checkout__summary { position: static; } }

.xt-card {
  background: #fff;
  border: 1px solid var(--xt-line);
  border-radius: var(--xt-r-lg);
  padding: 26px;
}
@media (max-width: 600px) { .xt-card { padding: 20px 16px; } }
.xt-card--pale { background: var(--xt-pale); border-color: var(--xt-pale-2); }
.xt-card__title { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.xt-card__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 10px;
  background: var(--xt-navy);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}
.xt-card--pale .xt-card__num { background: var(--xt-blue); }
.xt-card__text { margin: 6px 0 0; color: var(--xt-navy-2); }
.xt-card .xt-choice:first-of-type { margin-top: 14px; }

/* ---------- Form fields ---------- */
.xt-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin-top: 18px; }
.xt-field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .xt-fields { grid-template-columns: 1fr; } }
.xt-field { min-width: 0; }
.xt-field > label { display: block; margin-bottom: 7px; font-weight: 700; font-size: 14.5px; color: var(--xt-navy); }

.co-input {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--xt-line-strong);
  border-radius: var(--xt-r);
  background: #fff;
  color: var(--xt-navy);
  font: 500 16px/1.3 var(--xt-font); /* 16px: no iOS zoom on focus */
  box-sizing: border-box;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.co-input::placeholder { color: #8796a8; }
.co-input:hover { border-color: #94a3b8; }
.co-input:focus { outline: none; border-color: var(--xt-blue); box-shadow: 0 0 0 4px rgba(8, 120, 209, 0.18); }
.co-input:disabled { background: #f8fafc; color: var(--xt-muted); }
.co-hint { margin: 6px 0 0; color: var(--xt-muted); font-size: 13.5px; }
.xt-e164:empty { display: none; }
.xt-e164 { font-family: var(--xt-mono); color: var(--xt-blue-hover); font-weight: 600; }
.co-error-text { display: none; margin: 6px 0 0; color: var(--xt-danger); font-size: 14px; font-weight: 600; }
.co-error-text::before { content: "! "; font-weight: 800; }
.co-field.has-error .co-error-text { display: block; }
.co-field.has-error .co-input { border-color: var(--xt-danger); background: #fffafa; }
.co-field.has-error .co-input:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.15); }

.xt-error-summary {
  padding: 18px 20px;
  border: 2px solid var(--xt-danger);
  border-radius: var(--xt-r-lg);
  background: var(--xt-danger-soft);
  outline: none;
}
.xt-error-summary:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.2); }
.xt-error-summary__title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16.5px; color: var(--xt-danger); }
.xt-error-summary ul { margin: 10px 0 0; padding-left: 28px; }
.xt-error-summary ul:empty { display: none; }
.xt-error-summary a { color: var(--xt-danger); font-weight: 700; }

/* ---------- Country / dial-code combos (checkout.js) ---------- */
.combo-select { position: relative; }
.combo-trigger { display: flex; align-items: center; gap: 10px; width: 100%; text-align: start; cursor: pointer; }
.combo-flag-wrap {
  width: 22px; height: 16px; flex: 0 0 22px;
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden; border-radius: 3px;
  background: var(--xt-pale-2);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.14);
}
.combo-flag { display: block; width: 100%; height: 100%; object-fit: cover; }
.combo-flag-text { display: none; width: 100%; font-size: 9px; line-height: 1; font-weight: 700; text-align: center; color: var(--xt-navy); }
.combo-flag-wrap.is-fallback .combo-flag { display: none; }
.combo-flag-wrap.is-fallback .combo-flag-text { display: block; }
.combo-flag-wrap[data-country-code=""]:not(.is-fallback) { background: var(--xt-pale-2); }
.combo-option .combo-flag-wrap { width: 20px; height: 15px; flex-basis: 20px; }
.combo-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--xt-navy); }
.combo-label.is-placeholder { color: #8796a8; }
.combo-caret { flex-shrink: 0; color: var(--xt-muted); }
.combo-dial { color: var(--xt-navy); font-weight: 700; font-size: 15px; white-space: nowrap; }
.combo-panel {
  display: none; flex-direction: column;
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 60;
  width: 300px; max-height: 340px;
  background: #fff;
  border: 1px solid var(--xt-line);
  border-radius: var(--xt-r);
  box-shadow: 0 24px 48px -16px rgba(15, 23, 42, 0.3);
  overflow: hidden;
}
.combo-panel.open { display: flex; }
.combo-panel.combo-panel-compact { width: 310px; }
.combo-panel.combo-panel-up { top: auto; bottom: calc(100% + 6px); }
.combo-panel.combo-panel-align-end { left: auto; right: 0; }
.combo-search-wrap { padding: 10px; border-bottom: 1px solid var(--xt-line); flex-shrink: 0; }
.combo-search { min-height: 44px !important; }
.combo-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; }
.combo-option { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; cursor: pointer; font-size: 15px; }
.combo-option:hover, .combo-option.is-active { background: var(--xt-pale); }
.combo-option-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-option-dial { color: var(--xt-muted); font-size: 13.5px; font-family: var(--xt-mono); }
.combo-empty { padding: 18px 10px; text-align: center; color: var(--xt-muted); font-size: 14px; }
.phone-input-group { display: flex; gap: 10px; }
.phone-input-group .combo-select { flex-shrink: 0; width: 132px; }
.phone-input-group .phone-national-input { flex: 1; min-width: 0; }
.co-field.has-error .combo-trigger { border-color: var(--xt-danger); }
@media (max-width: 560px) {
  .combo-panel, .combo-panel.combo-panel-compact { width: min(calc(100vw - 32px), 340px); }
  .phone-input-group .combo-select { width: 118px; }
}

/* ---------- Order summary ---------- */
.xt-summary {
  background: #fff;
  border: 1px solid var(--xt-line);
  border-radius: var(--xt-r-xl);
  box-shadow: var(--xt-shadow);
  padding: 24px;
}
@media (max-width: 600px) { .xt-summary { padding: 20px 16px; } }
.xt-summary__head { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--xt-line); }
.xt-summary__thumb { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--xt-pale); }
.xt-summary__thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.xt-summary__thumb .xt-media-ph__brand, .xt-summary__thumb .xt-media-ph__unit { display: none; }
.xt-summary__thumb .xt-media-ph__value { font-size: 28px; }
.xt-summary__title { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--xt-muted); }
.xt-summary__product { margin: 4px 0 2px; font-weight: 800; font-size: 16.5px; overflow-wrap: anywhere; }
.xt-summary__change { font-size: 14px; font-weight: 700; color: var(--xt-blue); }
.xt-summary__rows { margin: 16px 0 0; display: grid; gap: 10px; }
.xt-summary__rows > div { display: flex; justify-content: space-between; gap: 14px; font-size: 15px; }
.xt-summary__rows > div[hidden] { display: none; }
.xt-summary__rows dt { color: var(--xt-muted); }
.xt-summary__rows dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.xt-summary__muted dd { color: var(--xt-muted); font-weight: 500; }
.xt-summary__discount dd { color: var(--xt-success); }
.xt-summary__rows--totals { padding-top: 16px; border-top: 1px solid var(--xt-line); }
.xt-summary__total { padding-top: 6px; align-items: baseline; }
.xt-summary__total dt { color: var(--xt-navy) !important; font-weight: 800; font-size: 17px; }
.xt-summary__total dd { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--xt-navy); }
.xt-summary .xt-submit { margin-top: 20px; }

.xt-coupon { margin-top: 18px; padding: 16px; border: 1.5px dashed var(--xt-pale-2); border-radius: var(--xt-r); background: #fbfdff; }
.xt-coupon > label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 14.5px; }
.xt-coupon__row { display: flex; gap: 8px; }
.xt-coupon__row .co-input { min-height: 46px; text-transform: uppercase; }
.xt-coupon__row .co-input::placeholder { text-transform: none; }
.xt-coupon__row .xt-btn { min-height: 46px; padding: 0 16px; flex-shrink: 0; }
.xt-coupon__row .xt-btn.is-remove { background: #fff; color: var(--xt-danger); border-color: #f5c2bd; }
.xt-coupon__msg { margin: 10px 0 0; padding: 8px 12px; border-radius: var(--xt-r-sm); font-size: 14px; font-weight: 700; }
.xt-coupon__msg.co-coupon-success { background: var(--xt-success-soft); color: var(--xt-success); }
.xt-coupon__msg.co-coupon-error { background: var(--xt-danger-soft); color: var(--xt-danger); }

/* Submit button: loading state prevents a second submit (checkout.js) */
.xt-submit { position: relative; white-space: normal; text-align: center; line-height: 1.25; }
.xt-submit__spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: xt-spin .7s linear infinite;
}
.xt-submit.is-loading { cursor: progress; opacity: .85; transform: none; }
.xt-submit.is-loading .xt-submit__spinner { display: inline-block; }
@keyframes xt-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .xt-submit__spinner { animation-duration: 1.6s !important; animation-iteration-count: infinite !important; } }

/* ---------- Confirmation ---------- */
.xt-confirm {
  margin: 48px 0 28px;
  padding: 40px 32px;
  text-align: center;
  border-radius: var(--xt-r-xl);
  background:
    radial-gradient(circle at 1px 1px, rgba(8, 120, 209, 0.10) 1px, transparent 0) 0 0 / 22px 22px,
    var(--xt-pale);
  border: 1px solid var(--xt-pale-2);
}
@media (max-width: 600px) { .xt-confirm { margin-top: 28px; padding: 32px 18px; } }
.xt-confirm__badge { display: flex; width: 76px; height: 76px; align-items: center; justify-content: center; border-radius: 50%; background: var(--xt-success); color: #fff; box-shadow: 0 0 0 10px var(--xt-success-soft); margin: 0 auto 22px; }
.xt-confirm h1 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 38px); font-weight: 800; }
.xt-confirm .xt-eyebrow { display: flex; justify-content: center; }
.xt-confirm .xt-lead { margin: 0 auto 12px; }
.xt-confirm p { margin: 0 auto 8px; max-width: 60ch; color: var(--xt-navy-2); }
.xt-confirm__email { display: inline-flex !important; align-items: center; gap: 8px; margin-top: 10px !important; padding: 8px 14px; border-radius: var(--xt-pill); background: #fff; font-weight: 600; }
.xt-confirm__email svg { color: var(--xt-blue); }
.xt-confirm-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 820px) { .xt-confirm-grid { grid-template-columns: 1fr; } }
.xt-confirm-grid .xt-summary__title { margin-bottom: 4px; }
.xt-status { display: inline-block; padding: 3px 10px; border-radius: var(--xt-pill); background: var(--xt-warning-soft); color: var(--xt-warning); font-size: 13.5px; }
.xt-narrow > .xt-summary { margin-bottom: 24px; }
.xt-narrow > .xt-summary .xt-btn { margin-top: 18px; }
