/* Light checkout (owner-approved 2026-09-27): light order summary, charcoal payment
   panel with Whop's dark form. Only loaded by templates_light/v2/checkout.html. */
.lt-checkout {
  background: #f4f7fa;
}
.lt-checkout .promo-bar + .co-header {
  border-top: 0;
}

/* ---------- Header ---------- */
.co-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid #e3eaf0;
  background: #fff;
}
.co-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}
.co-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.co-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid #dbe4eb;
  border-radius: 12px;
  background: #fff;
  color: #0b1d2b !important;
}
.co-close:hover {
  border-color: #9ccbe8;
  background: #f3faff;
}
.co-close .lt-ico {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}
.co-crumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #5e7180;
  font-size: 14px;
  white-space: nowrap;
}
.co-crumbs a {
  color: #5e7180 !important;
  text-decoration: none !important;
}
.co-crumbs a:hover {
  color: #0b1d2b !important;
}
.co-crumbs b {
  color: #0b1d2b;
  font-weight: 600;
}
.co-logo {
  display: block;
  line-height: 0;
}
.co-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.co-secure {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 7px;
  color: #3d5566;
  font-size: 13px;
  font-weight: 500;
}
.co-secure .lt-ico {
  width: 16px;
  height: 16px;
  color: #16a34a;
}

/* ---------- Layout: the right half of the page is the charcoal payment panel ---------- */
.checkout-v2 {
  position: relative;
  isolation: isolate;
}
.checkout-v2::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  bottom: 0;
  left: 50%;
  background: linear-gradient(180deg, #161617 0%, #111112 100%);
}
.co-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "summary pay"
    "extra pay";
  grid-template-rows: auto 1fr;
  column-gap: 72px;
  align-items: start;
  padding-block: 40px 72px;
}
.co-summary {
  grid-area: summary;
}
.co-pay {
  position: sticky;
  top: 24px;
  grid-area: pay;
  color: #e7e7ea;
}
.co-extra {
  grid-area: extra;
  align-self: start;
}

/* ---------- Order summary ---------- */
.co-summary h1 {
  margin: 0 0 18px;
  color: #0b1d2b;
  font: 600 30px/1.1 var(--font-body);
  letter-spacing: -0.04em;
}
.co-product {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid #e1e9f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px #08131c08, 0 12px 30px #08131c0d;
}
.co-thumb {
  width: 104px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px #08131c26;
}
.co-thumb-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0a1824;
}
.co-thumb-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.co-thumb-logo b {
  margin-top: -12px;
  color: #7dd3ff;
  font: 600 22px/1 var(--font-body);
}
.co-product-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.co-product-text b {
  color: #0b1d2b;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.co-product-text > span {
  color: #5e7180;
  font-size: 13px;
}
.co-product-text small {
  color: #6f8394;
  font-size: 12px;
}
.co-product-text .co-offer {
  color: #15803d;
  font-size: 12.5px;
  font-weight: 600;
}
.co-updated {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-top: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #6458f4;
  color: #fff !important;
  font: 650 11.5px/1 var(--font-body);
}
.co-product-price {
  display: grid;
  justify-items: end;
  gap: 2px;
}
.co-product-price s {
  color: var(--price-red, #dc2626);
  font-size: 13px;
  text-decoration-color: var(--price-red, #dc2626);
  text-decoration-thickness: 1.5px;
}
.co-product-price strong {
  color: var(--price-blue, #0b94e6);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.co-lines {
  display: grid;
  gap: 12px;
  padding: 22px 4px 0;
}
.co-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #4b5f6e;
  font-size: 14px;
}
.co-line b {
  color: #0b1d2b;
  font-weight: 600;
  white-space: nowrap;
}
.co-line b s {
  color: #627484;
  font-weight: 500;
}
.co-line-note span {
  color: #07568a;
  font-weight: 500;
}
.co-line-note b {
  color: #0a7d0a;
}
.co-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid #e1e9f0;
}
.co-total span {
  color: #0b1d2b;
  font-size: 16px;
  font-weight: 600;
}
.co-total strong {
  color: #0b1d2b;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.05em;
}

/* ---------- Upsell + fine print ---------- */
.co-upsell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  padding: 14px 16px;
  border: 1px solid #e1e9f0;
  border-radius: 16px;
  background: #fff;
  color: #0b1d2b !important;
  text-decoration: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.co-upsell:hover {
  border-color: #9ccbe8;
  box-shadow: 0 10px 26px #0d5b8a1a;
}
.co-upsell .co-thumb {
  width: 58px;
  height: 58px;
}
.co-upsell-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.co-upsell-text small {
  color: #6f8394;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.co-upsell-text b {
  font-size: 15px;
  font-weight: 600;
}
.co-upsell-text > span {
  color: #5e7180;
  font-size: 12.5px;
}
.co-upsell-price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.co-upsell-price .lt-ico {
  width: 16px;
  height: 16px;
  color: #6f8394;
}
.co-fine {
  max-width: 62ch;
  margin: 26px 0 0;
  color: #5e7180;
  font-size: 12px;
  line-height: 1.6;
}
.co-fine a {
  color: #315f7c !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}
.co-extra .purchase-disclaimer {
  max-width: 62ch;
  margin-top: 14px;
}

/* ---------- Payment panel: the Whop pane contract ---------- */
.lt-checkout .vs-pane {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 12px;
  background: transparent;
}
.lt-checkout .vs-pane iframe {
  width: 100% !important;
  border: 0;
}
.co-skeleton {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: start;
  gap: 14px;
}
.co-skeleton i {
  display: block;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(90deg, #1c1c1e 0%, #252528 50%, #1c1c1e 100%);
  background-size: 200% 100%;
}
.co-skeleton i:first-child {
  height: 56px;
  background: #202023;
}
.co-skeleton i:nth-child(4) {
  height: 150px;
}
.lt-checkout .vs-pane-status {
  position: absolute;
  top: 236px;
  right: 0;
  left: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  color: #a1a1aa;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}
.lt-checkout .vs-pane-status:empty {
  display: none;
}
.lt-checkout .vs-pane-status .m {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lt-checkout .vs-pane-status .vs-spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid #3a3a3f;
  border-top-color: #7dd3ff;
  border-radius: 50%;
}
/* Errors and payment states sit on a solid panel above the skeleton. */
.lt-checkout .vs-pane-status.err,
.lt-checkout .vs-pane-status.pending,
.lt-checkout .vs-pane-status.ok {
  inset: 0;
  justify-content: center;
  padding: 28px;
  border-radius: 12px;
  background: #1a1a1c;
  color: #d4d4d8;
}
.lt-checkout .vs-pane-status strong {
  color: #fff;
}
.lt-checkout .vs-pane-status a:not(.btn) {
  color: #7dd3ff !important;
}
.lt-checkout .vs-pane .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #3a3a3f;
  border-radius: 12px;
  background: #232326;
  color: #f4f4f5 !important;
  font: 600 14px/1 var(--font-body);
  text-decoration: none !important;
  cursor: pointer;
}
.lt-checkout .vs-pane .btn.primary {
  border-color: #7dd3ff;
  background: #7dd3ff;
  color: #08131c !important;
}
/* Apple Pay on Whop's hosted page for the same session (checkout.js addApplePayOption). */
.lt-checkout .vs-pane .vs-applepay {
  margin: 0 0 14px;
}
.lt-checkout .vs-pane .vs-applepay-btn {
  display: flex;
  width: 100%;
  min-height: 50px;
  border-color: #3a3a3f;
  background: #000;
  color: #fff !important;
  font: 600 17px/1 var(--font-body);
  letter-spacing: -0.01em;
}
.lt-checkout .vs-pane .vs-applepay-btn:focus-visible {
  outline: 2px solid #7dd3ff;
  outline-offset: 2px;
}
.lt-checkout .vs-pane .vs-applepay-note {
  margin: 8px 0 0;
  color: #a1a1aa;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}
/* r16: phones, under the payment form: "Buying later on your computer? Email yourself this checkout."
   (checkout.js initEmailLink). One quiet line on the charcoal panel, below the form and never above it.
   Dormant: the template does not render the line (owner, 2026-09-29); these rules only apply if it comes back. */
.co-sendlink {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #2a2a2e;
}
.co-sendlink[hidden] {
  display: none !important;
}
.co-sendlink-form {
  margin: 0;
}
.co-sendlink-label {
  display: block;
  margin: 0 0 10px;
  color: #d4d4d8;
  font-size: 14px;
  line-height: 1.45;
}
.co-sendlink-row {
  display: flex;
  gap: 8px;
  min-width: 0;
}
.co-sendlink-input {
  flex: 1 1 auto;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 46px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #3a3a3f;
  border-radius: 12px;
  background: #1c1c1f;
  color: #f4f4f5;
  font: 400 16px/1.2 var(--font-body); /* 16px or more: iOS Safari zooms the page into smaller inputs */
  -webkit-appearance: none;
  appearance: none;
}
.co-sendlink-input::placeholder {
  color: #71717a;
}
.co-sendlink-input:focus {
  border-color: #7dd3ff;
  outline: 0;
}
.co-sendlink-input[aria-invalid="true"] {
  border-color: #f87171;
}
.co-sendlink-btn {
  flex: 0 0 auto;
  height: 46px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid #3a3a3f;
  border-radius: 12px;
  background: #232326;
  color: #f4f4f5;
  font: 600 15px/1 var(--font-body);
  white-space: nowrap;
  cursor: pointer;
}
.co-sendlink-btn:hover {
  border-color: #52525b;
}
.co-sendlink-btn:focus-visible {
  outline: 2px solid #7dd3ff;
  outline-offset: 2px;
}
.co-sendlink-btn[disabled] {
  opacity: 0.6;
  cursor: default;
}
.co-sendlink-msg {
  margin: 8px 0 0;
  color: #a1a1aa;
  font-size: 13px;
  line-height: 1.45;
}
.co-sendlink-msg:empty {
  display: none;
}
.co-sendlink-msg.err {
  color: #fca5a5;
}
.co-sendlink.sent .co-sendlink-form {
  display: none;
}
.co-sendlink.sent .co-sendlink-msg {
  margin: 0;
  color: #e7e7ea;
  font-size: 14px;
}
.co-help {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: #a1a1aa;
  font-size: 13px;
}
.co-help .lt-ico {
  width: 16px;
  height: 16px;
  color: #a1a1aa;
}
.co-help a {
  color: #f4f4f5 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

/* ---------- Slim footer ---------- */
.co-footer {
  border-top: 1px solid #e3eaf0;
  background: #f4f7fa;
  padding: 28px 0 30px;
}
.co-footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.co-footer-row img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.co-footer-row nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.co-footer-row nav a {
  color: #3b5263 !important;
  font-size: 13px;
  text-decoration: none !important;
}
.co-footer-row nav a:hover {
  color: #0b1d2b !important;
}
.co-footer-legal {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e3eaf0;
  color: #6a7c89;
  font-size: 11.5px;
}

.co-includes-compact {
  display: none;
}

/* ---------- Phone / tablet ---------- */
@media (max-width: 860px) {
  .checkout-v2::after {
    display: none;
  }
  .co-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "summary"
      "pay"
      "extra";
    grid-template-rows: auto;
    row-gap: 22px;
    padding-block: 20px 48px;
  }
  .co-pay {
    position: static;
    padding: 20px 16px;
    border: 1px solid #161617;
    border-radius: 18px;
    background: linear-gradient(180deg, #161617 0%, #111112 100%);
    box-shadow: 0 18px 44px #07131d45;
  }
  /* Phones: the payment form comes up ~200px. The heading stays for screen readers; the four
     "Included" rows and the subtotal become one line; price, price-rise note and total stay. */
  .co-summary h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .co-line-detail {
    display: none;
  }
  .co-includes-compact {
    display: block;
    margin: 0;
    color: #4f6372;
    font-size: 13px;
    line-height: 1.45;
  }
  .co-product {
    gap: 12px;
    padding: 12px;
  }
  .co-thumb {
    width: 76px;
    height: 48px;
  }
  .co-product-text b {
    font-size: 16px;
  }
  .co-product-text small {
    display: none;
  }
  .co-lines {
    gap: 10px;
    padding-top: 12px;
  }
  .co-line {
    font-size: 13px;
  }
  .co-total strong {
    font-size: 28px;
  }
  .lt-checkout .vs-pane {
    min-height: 520px;
  }
  .co-header-inner {
    gap: 10px;
    min-height: 62px;
  }
  .co-close {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
  .co-crumbs a,
  .co-crumbs > span {
    display: none;
  }
  .co-secure > span {
    display: none;
  }
}
@media (max-width: 420px) {
  .co-upsell {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .co-upsell-price {
    grid-column: 2;
    font-size: 16px;
  }
  .co-upsell-text > span {
    display: none;
  }
}

/* Loading motion runs even with reduced motion on (slower), so it never looks stuck. */
@keyframes ltCoSpin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes ltCoShimmer {
  to {
    background-position: -200% 0;
  }
}
.lt-checkout .vs-spinner {
  animation: ltCoSpin 0.9s linear infinite;
}
.co-skeleton i {
  animation: ltCoShimmer 1.4s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .lt-checkout .vs-spinner {
    animation-duration: 1.6s;
  }
  .co-skeleton i {
    animation-duration: 2.8s;
  }
}
