/* ==========================================================
   CricHeadSports — product page: Customize & Buy (sporty)
   Loaded after style.css on product.html only. Restyles the
   size / weight / add-ons / included-free / buy area in the
   brand red & black. No layout outside this area is changed.
   ========================================================== */

.product-customization,
.product-actions,
.pp-summary,
.pp-trust {
  --pp-red: #c41e3a;
  --pp-red-hi: #db2546;
  --pp-red-soft: #ff8fa2;
  --pp-ink: #0f0f0f;
  --pp-muted: #6f675d;
  --pp-line: #e2dcd2;
  --pp-paper: #faf8f4;
}

/* ---------- Page layout fix ----------
   Bats with 5+ photos made the thumbnail row wider than a phone screen,
   stretching the whole page. Let both columns shrink so the thumbnails
   scroll sideways instead. */
.product-layout > * { min-width: 0; }

/* ---------- Heading ---------- */
.product-customization {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--pp-line);
  counter-reset: ppstep;
}
.customization-heading {
  display: flex; align-items: center; gap: 12px; margin: 0;
  font-family: 'Anton', sans-serif; font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.55rem, 2.4vw, 1.95rem); line-height: 1; letter-spacing: .01em; color: var(--pp-ink);
}
.customization-heading::before {
  content: ""; flex: 0 0 30px; height: 10px;
  background: repeating-linear-gradient(115deg, var(--pp-red) 0 3px, transparent 3px 7px);
}
.customization-subtitle { margin: 8px 0 22px; color: var(--pp-muted); font-size: .9rem; line-height: 1.5; }

/* ---------- Numbered steps ---------- */
.product-option-group { counter-increment: ppstep; margin-bottom: 22px; }
.product-option-label {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
  font-family: 'JetBrains Mono', monospace; font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--pp-ink);
}
.product-option-label::before {
  content: counter(ppstep, decimal-leading-zero);
  display: inline-grid; place-items: center; min-width: 32px; height: 23px; padding: 0 7px;
  background: var(--pp-red); color: #fff;
  font-family: 'Anton', sans-serif; font-size: .9rem; letter-spacing: .04em;
  transform: skewX(-12deg);
}
.pp-optional { margin-left: 2px; color: var(--pp-muted); font-weight: 500; letter-spacing: .08em; }

/* ---------- Size & weight buttons ---------- */
.product-option-list { display: flex; flex-wrap: wrap; gap: 8px; }
.product-option {
  position: relative; overflow: hidden;
  flex: 1 1 calc(25% - 8px); min-width: 76px; min-height: 48px;
  padding: 10px 8px; border: 1.5px solid #d8d2c8; border-radius: 10px;
  background: #fff; color: var(--pp-ink);
  font-size: .8rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
  transition: border-color .2s, background .2s, color .2s, transform .2s, box-shadow .2s;
}
.product-option:hover { border-color: var(--pp-ink); transform: translateY(-1px); }
.product-option.selected {
  border-color: var(--pp-ink); background: var(--pp-ink); color: #fff;
  box-shadow: 0 12px 24px -16px rgba(0, 0, 0, .9);
}
/* replaces the old green tick with a red bar */
.product-option.selected::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; top: auto;
  display: block; width: auto; height: 3px; margin: 0; border-radius: 0;
  background: var(--pp-red); font-size: 0; transform: none;
}

/* ---------- Add-ons ---------- */
.product-addon-list { display: grid; gap: 10px; }
.product-addon {
  position: relative;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px;
  padding: 14px 16px; border: 1.5px solid var(--pp-line); border-radius: 14px;
  background: #fff; cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.product-addon:hover { border-color: var(--pp-ink); }
.product-addon.selected { border-color: var(--pp-ink); background: var(--pp-paper); box-shadow: inset 4px 0 0 var(--pp-red); }
.product-addon:focus-visible { outline: 2px solid var(--pp-red); outline-offset: 2px; }

.pp-addon-icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: #f1ece4; color: var(--pp-ink); transition: background .2s, color .2s;
}
.pp-addon-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.product-addon.selected .pp-addon-icon { background: var(--pp-red); color: #fff; }

.product-addon-content { min-width: 0; padding-right: 0; }
.product-addon-name { display: block; font-size: .92rem; font-weight: 700; color: var(--pp-ink); }
.product-addon-description { display: block; margin-top: 2px; font-size: .78rem; line-height: 1.4; color: var(--pp-muted); }
.product-addon-price { position: static; top: auto; right: auto; font-family: 'JetBrains Mono', monospace; font-size: .82rem; font-weight: 700; color: var(--pp-ink); white-space: nowrap; }

.product-addon-check {
  position: relative; top: auto; right: auto; transform: none;
  width: 22px; height: 22px; border: 2px solid #cbc3b7; border-radius: 6px; background: #fff;
  transition: background .2s, border-color .2s;
}
.product-addon.selected .product-addon-check { background: var(--pp-red); border-color: var(--pp-red); }
.product-addon-check::after,
.product-addon.selected .product-addon-check::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg); font-size: 0; opacity: 0; transition: opacity .15s;
}
.product-addon.selected .product-addon-check::after { opacity: 1; }
.product-addon-input-wrap { grid-column: 2 / -1; }

/* ---------- Included free (dark panel) ---------- */
.included-free-section {
  position: relative; overflow: hidden; margin-top: 6px;
  padding: 22px 20px 20px; border: 0; border-radius: 16px;
  background: linear-gradient(135deg, #171717 0%, #0b0b0b 100%); color: #fff;
  box-shadow: 0 22px 44px -30px rgba(0, 0, 0, .85);
}
.included-free-section::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--pp-red), #ff5a73 60%, var(--pp-red));
}
.included-free-header { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.included-free-icon {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; background: var(--pp-red); color: #fff; font-size: 0;
}
.included-free-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.included-free-title { margin: 0; font-family: 'Anton', sans-serif; font-weight: 400; text-transform: uppercase; font-size: 1.15rem; letter-spacing: .02em; color: #fff; }
.included-free-subtitle { margin: 3px 0 0; font-size: .8rem; color: rgba(255, 255, 255, .62); }

.included-free-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.included-free-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 14px 12px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 12px;
  background: rgba(255, 255, 255, .05);
}
.included-free-check {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(196, 30, 58, .18); color: var(--pp-red-soft); font-size: 0; border: 0;
}
.included-free-check svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.included-free-text { display: block; }
.included-free-name { display: block; font-size: .84rem; font-weight: 700; line-height: 1.3; color: #fff; }
.included-free-description { display: block; margin-top: 2px; font-size: .74rem; color: rgba(255, 255, 255, .6); }
.included-free-badge {
  margin-top: auto; padding: 3px 9px; border-radius: 999px;
  background: transparent; border: 1px solid rgba(255, 143, 162, .55); color: var(--pp-red-soft);
  font-family: 'JetBrains Mono', monospace; font-size: .6rem; font-weight: 700; letter-spacing: .14em;
}
.included-free-footer { display: none; }

/* ---------- Live order summary ---------- */
.pp-summary {
  margin-top: 22px; padding: 16px 18px;
  border: 1.5px solid var(--pp-ink); border-radius: 14px; background: #fff;
}
.pp-summary-row[hidden] { display: none; }
.pp-summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 3px 0; font-size: .84rem; }
.pp-summary-row span:first-child { font-family: 'JetBrains Mono', monospace; font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pp-muted); white-space: nowrap; }
.pp-summary-row span:last-child { text-align: right; font-weight: 600; color: var(--pp-ink); }
.pp-summary-total {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  margin-top: 10px; padding-top: 12px; border-top: 1px dashed var(--pp-line);
}
.pp-summary-total span { font-family: 'Anton', sans-serif; text-transform: uppercase; font-size: 1.05rem; letter-spacing: .03em; color: var(--pp-ink); }
.pp-summary-total strong { font-family: 'Anton', sans-serif; font-weight: 400; font-size: 1.7rem; letter-spacing: .01em; color: var(--pp-red); }

/* ---------- Buttons ---------- */
.product-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.product-actions .btn { border-radius: 999px; }
.product-buy {
  min-height: 56px; border: 0; background: var(--pp-red); color: #fff;
  font-size: .9rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 16px 34px -16px rgba(196, 30, 58, .85);
  transition: background .25s, transform .25s, box-shadow .25s;
}
.product-buy:hover { background: var(--pp-red-hi); transform: translateY(-2px); box-shadow: 0 20px 38px -16px rgba(196, 30, 58, .95); }
.product-buy .pp-arrow { display: inline-block; margin-left: 8px; transition: transform .25s; }
.product-buy:hover .pp-arrow { transform: translateX(4px); }
.product-buy.pp-sold { background: #8a8278; box-shadow: none; }

.product-whatsapp {
  gap: 10px; min-height: 52px; background: #fff; color: var(--pp-ink);
  border: 1.5px solid #d8d2c8; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  transition: border-color .2s, background .2s;
}
.product-whatsapp:hover { background: #fff; border-color: var(--pp-ink); }
.product-whatsapp svg { width: 20px; height: 20px; color: #25d366; flex: none; }

/* ---------- Trust line ---------- */
.pp-trust { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.pp-trust li { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--pp-muted); }
.pp-trust svg { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: var(--pp-red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pp-trust a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Phones ---------- */
@media (max-width: 560px) {
  .product-option-list { gap: 6px; }
  .product-option { flex-basis: calc(25% - 6px); min-width: 62px; min-height: 46px; padding: 9px 4px; font-size: .76rem; letter-spacing: 0; }
  .product-addon { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 12px 14px; }
  .product-addon-price { grid-column: 3; grid-row: 1; justify-self: end; }
  .product-addon-check { grid-column: 3; grid-row: 1; display: none; }
  .product-addon.selected .product-addon-price { color: var(--pp-red); }
  .pp-addon-icon { width: 36px; height: 36px; }
  .included-free-section { padding: 20px 14px 16px; }
  .included-free-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .included-free-item { padding: 12px 10px; }
  .included-free-name { font-size: .78rem; }
  .pp-summary-total strong { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .product-option, .product-addon, .product-buy, .product-buy .pp-arrow { transition: none; }
}


/* ==========================================================
   CHECKOUT POPUP ("Complete Your Order") — visual restyle only.
   Same elements, ids and open/selected/invalid states as before;
   only colours, type and spacing change.
   ========================================================== */
.ch-checkout-overlay {
  --pp-red: #c41e3a; --pp-red-hi: #db2546; --pp-red-soft: #ff8fa2;
  --pp-ink: #0f0f0f; --pp-muted: #6f675d; --pp-line: #e2dcd2; --pp-paper: #faf8f4;
  background: rgba(8, 8, 8, .72);
}
.ch-checkout-modal {
  border: 0; border-radius: 22px; background: #fff;
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .55);
}

/* Header */
.ch-checkout-header {
  padding: 22px 22px 18px;
  background: linear-gradient(135deg, #0b0b0b 0%, #161012 60%, #24090f 100%);
}
.ch-checkout-header::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--pp-red), #ff5a73 60%, var(--pp-red));
}
.ch-checkout-header::after { height: 1px; background: rgba(255, 255, 255, .08); }
.ch-checkout-brand {
  margin-bottom: 8px; color: var(--pp-red-soft);
  font-family: 'JetBrains Mono', monospace; font-size: .62rem; font-weight: 700; letter-spacing: .18em;
}
.ch-checkout-brand::before {
  content: ""; flex: 0 0 24px; height: 8px;
  background: repeating-linear-gradient(115deg, var(--pp-red-soft) 0 3px, transparent 3px 7px);
}
.ch-checkout-brand-dot { background: rgba(255, 255, 255, .35); }
.ch-checkout-title {
  font-family: 'Anton', sans-serif; font-weight: 400; text-transform: uppercase;
  font-size: 1.7rem; line-height: 1; letter-spacing: .01em; color: #fff;
}
.ch-checkout-subtitle { margin-top: 6px; color: rgba(255, 255, 255, .65); font-size: .82rem; }
.ch-checkout-close {
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); color: #fff;
  transition: background .2s, border-color .2s;
}
.ch-checkout-close:hover { background: var(--pp-red); border-color: var(--pp-red); }

/* Body */
.ch-checkout-scroll { background: #fff; }
.ch-product-summary {
  border: 1.5px solid var(--pp-line); border-radius: 14px; background: #fff;
  box-shadow: inset 4px 0 0 var(--pp-red);
}
.ch-product-summary-image { border-radius: 10px; background: #f1ece4; }
.ch-product-summary-label {
  color: var(--pp-red); font-family: 'JetBrains Mono', monospace; font-size: .62rem; font-weight: 700; letter-spacing: .16em;
}
.ch-product-summary-name {
  font-family: 'Anton', sans-serif; font-weight: 400; text-transform: uppercase;
  font-size: 1.25rem; letter-spacing: .01em; color: var(--pp-ink);
}
.ch-product-summary-price { font-family: 'Anton', sans-serif; font-weight: 400; font-size: 1.35rem; color: var(--pp-red); }

.ch-selection-box { border: 0; border-radius: 12px; background: var(--pp-paper); }
.ch-selection-title {
  color: var(--pp-muted); font-family: 'JetBrains Mono', monospace; font-size: .62rem; font-weight: 700; letter-spacing: .16em;
}
.ch-selection-chip {
  border: 1px solid var(--pp-line); border-radius: 999px; background: #fff;
  color: var(--pp-muted); font-size: .74rem;
}
.ch-selection-chip strong { color: var(--pp-ink); }

/* Section titles: 01 Delivery Details / 02 Payment Method */
.ch-form-section-title {
  color: var(--pp-ink); font-family: 'JetBrains Mono', monospace; font-size: .74rem; font-weight: 700; letter-spacing: .14em;
}
.ch-form-section-title span {
  display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 7px;
  border: 0; border-radius: 0; background: var(--pp-red); color: #fff;
  font-family: 'Anton', sans-serif; font-size: .88rem; letter-spacing: .04em;
  transform: skewX(-12deg);
}

/* Fields */
.ch-field input,
.ch-field textarea {
  padding: 13px 14px; border: 1.5px solid var(--pp-line); border-radius: 10px;
  background: #fff; color: var(--pp-ink); font-size: .9rem;
}
.ch-field input::placeholder,
.ch-field textarea::placeholder { color: #9a9288; }
.ch-field input:focus,
.ch-field textarea:focus {
  border-color: var(--pp-ink); background: #fff;
  box-shadow: 0 0 0 3px rgba(196, 30, 58, .12);
}
.ch-field.invalid input,
.ch-field.invalid textarea { border-color: var(--pp-red); box-shadow: 0 0 0 3px rgba(196, 30, 58, .12); }
.ch-field-error { color: var(--pp-red); font-size: .74rem; font-weight: 600; }

/* Payment options */
.ch-payment-option {
  border: 1.5px solid var(--pp-line); border-radius: 14px; background: #fff;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.ch-payment-option:hover { border-color: var(--pp-ink); }
.ch-payment-option.selected {
  border-color: var(--pp-ink); background: var(--pp-paper);
  box-shadow: inset 4px 0 0 var(--pp-red);
}
.ch-payment-radio { border: 2px solid #cbc3b7; }
.ch-payment-option.selected .ch-payment-radio { border-color: var(--pp-red); }
.ch-payment-option.selected .ch-payment-radio::after { background: var(--pp-red); }
.ch-payment-name { color: var(--pp-ink); font-weight: 700; }
.ch-payment-description { color: var(--pp-muted); }
.ch-payment-amount { color: var(--pp-ink); font-family: 'JetBrains Mono', monospace; font-weight: 700; }
.ch-payment-option.cod .ch-payment-amount,
.ch-payment-options .ch-payment-option .ch-payment-amount { color: var(--pp-ink); }
.ch-payment-options .ch-payment-option.selected .ch-payment-amount { color: var(--pp-red); }

/* Order total */
.ch-total-box {
  position: relative; overflow: hidden; border: 0; border-radius: 14px;
  background: linear-gradient(135deg, #171717 0%, #0b0b0b 100%); color: #fff;
}
.ch-total-box::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--pp-red);
}
.ch-total-label {
  color: rgba(255, 255, 255, .7); font-family: 'JetBrains Mono', monospace; font-size: .64rem; font-weight: 700; letter-spacing: .16em;
}
.ch-total-note { color: rgba(255, 255, 255, .55); }
.ch-total-value { font-family: 'Anton', sans-serif; font-weight: 400; font-size: 1.8rem; letter-spacing: .01em; color: #fff; }

/* Footer + Pay button */
.ch-checkout-footer { background: #fff; border-top: 1px solid var(--pp-line); }
.ch-pay-button {
  min-height: 54px; border-radius: 999px;
  background: var(--pp-red); color: #fff;
  font-size: .88rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 16px 34px -16px rgba(196, 30, 58, .85);
}
.ch-pay-button:hover { background: var(--pp-red-hi); box-shadow: 0 20px 38px -16px rgba(196, 30, 58, .95); }
.ch-secure-note { color: var(--pp-muted); }
.ch-secure-note strong { color: var(--pp-ink); }

/* Field labels, +91 prefix, State dropdown */
.ch-label { display: block; margin: 0 0 6px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; color: var(--pp-ink); }
.ch-label b { color: var(--pp-red); font-weight: 700; }
.ch-phone-wrap { display: flex; align-items: stretch; }
.ch-phone-prefix {
  display: grid; place-items: center; padding: 0 12px;
  border: 1.5px solid var(--pp-line); border-right: 0; border-radius: 10px 0 0 10px;
  background: var(--pp-paper); color: var(--pp-ink); font-weight: 700; font-size: .88rem;
}
.ch-phone-wrap input { border-radius: 0 10px 10px 0; min-width: 0; }
.ch-field select {
  width: 100%; box-sizing: border-box; padding: 13px 38px 13px 14px;
  border: 1.5px solid var(--pp-line); border-radius: 10px; background-color: #fff; color: var(--pp-ink);
  font: inherit; font-size: .9rem; outline: none; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f0f0f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
  transition: border-color .18s, box-shadow .18s;
}
/* keep long state names from stretching the popup on phones */
.ch-form-grid > .ch-field { min-width: 0; }
.ch-field select { min-width: 0; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.ch-field select:invalid, .ch-field select option[value=""] { color: #9a9288; }
.ch-field select option { color: var(--pp-ink); }
.ch-field select:focus { border-color: var(--pp-ink); box-shadow: 0 0 0 3px rgba(196, 30, 58, .12); }
.ch-field.invalid select { border-color: var(--pp-red); box-shadow: 0 0 0 3px rgba(196, 30, 58, .12); }

/* Delivery estimate under the bat */
.ch-eta { display: flex; align-items: center; gap: 7px; margin-top: 6px; font-size: .76rem; color: var(--pp-muted); }
.ch-eta svg { flex: 0 0 16px; width: 16px; height: 16px; fill: none; stroke: var(--pp-red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ch-eta strong { color: var(--pp-ink); }

/* Cash on Delivery note */
.ch-cod-note { display: block; margin-top: 4px; font-size: .7rem; line-height: 1.4; color: var(--pp-muted); font-style: italic; }
.ch-payment-option.selected .ch-cod-note { color: var(--pp-red); font-style: normal; font-weight: 600; }

/* Price breakdown */
.ch-breakdown { margin: 14px 0 10px; padding: 4px 2px; }
.ch-breakdown:empty { display: none; }
.ch-bd-row { display: flex; justify-content: space-between; gap: 14px; padding: 6px 2px; border-bottom: 1px dashed var(--pp-line); font-size: .84rem; color: var(--pp-muted); }
.ch-bd-row:last-child { border-bottom: 0; }
.ch-bd-row span:last-child { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--pp-ink); white-space: nowrap; }
.ch-bd-row:first-child span:first-child { color: var(--pp-ink); font-weight: 600; }
.ch-bd-free span:last-child { color: #1d7a3e; letter-spacing: .08em; }

/* WhatsApp help link */
.ch-help {
  display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px;
  border: 1.5px solid var(--pp-line); border-radius: 12px; background: #fff;
  color: var(--pp-muted); font-size: .8rem; text-decoration: none; transition: border-color .2s;
}
.ch-help:hover { border-color: var(--pp-ink); }
.ch-help svg { flex: 0 0 22px; width: 22px; height: 22px; color: #25d366; }
.ch-help strong { color: var(--pp-ink); }

/* Policy line + secure note with payment methods */
.ch-policy { margin: 0 0 10px; text-align: center; font-size: .72rem; line-height: 1.45; color: var(--pp-muted); }
.ch-policy a { color: var(--pp-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.ch-secure-note { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 8px; margin-top: 10px; font-size: .72rem; }
.ch-secure-lock svg { display: block; width: 14px; height: 14px; fill: none; stroke: var(--pp-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ch-pay-methods { display: inline-flex; gap: 5px; margin-left: 4px; }
.ch-pay-method {
  padding: 2px 7px; border: 1px solid var(--pp-line); border-radius: 5px; background: var(--pp-paper);
  color: var(--pp-ink); font-family: 'JetBrains Mono', monospace; font-size: .6rem; font-weight: 700; letter-spacing: .06em;
}

/* Promo code box */
.ch-promo { margin: 16px 0 0; }
.ch-promo-opt { font-weight: 400; color: var(--pp-muted); }
.ch-promo-field { display: flex; gap: 8px; }
.ch-promo-field input {
  flex: 1 1 auto; min-width: 0; box-sizing: border-box; padding: 13px 14px;
  border: 1.5px solid var(--pp-line); border-radius: 10px; background: #fff; color: var(--pp-ink);
  font: inherit; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.ch-promo-field input::placeholder { color: #9a9288; letter-spacing: 0; text-transform: none; }
.ch-promo-field input:focus { border-color: var(--pp-ink); box-shadow: 0 0 0 3px rgba(196, 30, 58, .12); }
#ch-promo-apply {
  flex: 0 0 auto; padding: 0 20px; border: 0; border-radius: 10px; background: var(--pp-ink); color: #fff;
  font: inherit; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer; transition: background .2s;
}
#ch-promo-apply:hover { background: var(--pp-red); }
#ch-promo-apply:disabled { opacity: .6; cursor: wait; }
.ch-promo.is-applied .ch-promo-field input { border-color: #1d7a3e; background: #f1faf4; }
.ch-promo.is-applied #ch-promo-apply { background: #fff; color: var(--pp-ink); border: 1.5px solid var(--pp-line); }
.ch-promo-msg { margin: 8px 0 0; font-size: .8rem; }
.ch-promo-msg:empty { display: none; }
.ch-promo-msg.ok { color: #1d7a3e; font-weight: 700; }
.ch-promo-msg.err { color: var(--pp-red); font-weight: 600; }
.ch-bd-promo { margin: -6px 2px 10px; }
.ch-bd-promo[hidden] { display: none; }
.ch-bd-promo span:first-child { color: #1d7a3e; font-weight: 700; }
.ch-bd-promo span:last-child { color: #1d7a3e; }
.ch-total-box.ch-total-flash { animation: chTotalFlash 1.2s ease; }
@keyframes chTotalFlash { 25% { box-shadow: 0 0 0 4px rgba(29, 122, 62, .45); } }

/* "Code applied" pop-up */
.ch-promo-toast {
  position: fixed; z-index: 100000; top: 88px; left: 50%; display: flex; align-items: center; gap: 14px;
  width: max-content; max-width: calc(100% - 32px); padding: 14px 44px 14px 16px; border-radius: 16px;
  background: #0a0a0a; color: #fff; font-family: 'Work Sans', sans-serif;
  box-shadow: 0 22px 50px -14px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .1) inset;
  transform: translateX(-50%); animation: chToastIn .55s cubic-bezier(.2, 1.4, .4, 1) both;
}
.ch-promo-toast.is-leaving { animation: chToastOut .4s ease forwards; }
@keyframes chToastIn { 0% { opacity: 0; transform: translate(-50%, -24px) scale(.7); } 100% { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes chToastOut { to { opacity: 0; transform: translate(-50%, -16px) scale(.92); } }
.ch-pt-icon {
  position: relative; flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: #1d7a3e; animation: chPtPing 1.4s ease-out .3s 2;
}
.ch-pt-icon svg {
  width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 24; stroke-dashoffset: 24; animation: chPtTick .45s ease .35s forwards;
}
@keyframes chPtTick { to { stroke-dashoffset: 0; } }
@keyframes chPtPing { 0% { box-shadow: 0 0 0 0 rgba(29, 122, 62, .6); } 100% { box-shadow: 0 0 0 14px rgba(29, 122, 62, 0); } }
.ch-pt-text { display: grid; gap: 1px; line-height: 1.15; }
.ch-pt-code { font-family: 'JetBrains Mono', monospace; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.ch-pt-off { font-family: 'Anton', sans-serif; font-size: 1.7rem; letter-spacing: .02em; color: #ffd36e; animation: chPtOff .6s cubic-bezier(.2, 1.6, .4, 1) .25s both; }
@keyframes chPtOff { 0% { opacity: 0; transform: scale(.4); } 100% { opacity: 1; transform: scale(1); } }
.ch-pt-save { font-size: .82rem; font-weight: 600; color: #7fe0a6; }
.ch-pt-close {
  position: absolute; top: 8px; right: 10px; width: 26px; height: 26px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .08); color: #fff; font-size: 1rem; line-height: 1; cursor: pointer;
}
.ch-pt-close:hover { background: rgba(255, 255, 255, .2); }
.ch-pt-burst { position: absolute; left: 38px; top: 50%; width: 0; height: 0; pointer-events: none; }
.ch-pt-burst i {
  position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: #ffd36e; opacity: 0;
  transform: rotate(var(--a)) translateX(0); animation: chPtBurst .8s ease-out .3s forwards;
}
.ch-pt-burst i:nth-child(3n) { background: #c41e3a; }
.ch-pt-burst i:nth-child(4n) { background: #7fe0a6; }
@keyframes chPtBurst { 0% { opacity: 1; transform: rotate(var(--a)) translateX(0); } 100% { opacity: 0; transform: rotate(var(--a)) translateX(46px); } }
@media (prefers-reduced-motion: reduce) {
  .ch-promo-toast, .ch-promo-toast.is-leaving, .ch-pt-off, .ch-pt-icon, .ch-total-box.ch-total-flash { animation: none; }
  .ch-pt-icon svg { animation: none; stroke-dashoffset: 0; }
  .ch-pt-burst { display: none; }
}

@media (max-width: 560px) {
  .ch-promo-field input { font-size: 16px; padding: 12px 13px; }
  .ch-checkout-modal { border-radius: 22px 22px 0 0; }
  .ch-field select { font-size: 16px; padding: 12px 36px 12px 13px; }
  .ch-phone-prefix { font-size: 16px; }
  .ch-checkout-header { padding: 20px 17px 15px; }
  .ch-checkout-title { font-size: 1.45rem; }
  .ch-checkout-subtitle { font-size: .78rem; }
  .ch-product-summary-name { font-size: 1.08rem; }
  .ch-product-summary-price { font-size: 1.2rem; }
  /* 16px stops iPhones from zooming in when a field is tapped */
  .ch-field input,
  .ch-field textarea { font-size: 16px; padding: 12px 13px; }
  .ch-total-value { font-size: 1.55rem; }
  .ch-pay-button { min-height: 52px; border-radius: 999px; }
}
