.ow-checkout {
  --checkout-ink: #182b35;
  --checkout-muted: #465e53;
  --checkout-line: #c6d7cd;
  --checkout-green: #155748;
  --checkout-paper: #eff5f2;
  --checkout-sheen: #eef7f1;
  --checkout-accent: #daba75;
  --checkout-link: #10533e;
  --checkout-option: #fafcf9;
  --checkout-selected: #e8f4e9;
  --checkout-offer: #e8f2e5;
  --checkout-white: #fff;
  min-height: 100vh;
  margin: 0;
  background: var(--checkout-paper);
  color: var(--checkout-ink);
  font: 400 1rem/1.55 Arial, Helvetica, sans-serif;
}

.ow-checkout *, .ow-checkout *::before, .ow-checkout *::after { box-sizing: border-box; }
.ow-checkout [hidden] { display: none !important; }
.ow-checkout :focus-visible { outline: 3px solid #196d53; outline-offset: 3px; }
.ow-checkout a { color: inherit; }
.ow-checkout button, .ow-checkout input, .ow-checkout select { font: inherit; }

.checkout-main { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.checkout-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #102733;
  background-image: linear-gradient(116deg, #ffffff10, transparent 42%, #ffffff12);
  color: #f4fbf6;
  border-top: 3px solid var(--checkout-accent);
  border-bottom: 1px solid #59796f;
  padding-inline: max(1rem, calc((100% - 70rem) / 2));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .25rem 1rem;
  padding-block: .5rem;
}
.checkout-brand, .checkout-back {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  min-height: 44px;
  text-decoration-thickness: .08em;
  text-underline-offset: .2em;
}
.checkout-brand { font-size: 1.125rem; font-weight: 750; text-decoration: none; }
.checkout-brand::before {
  content: "";
  width: 2rem;
  height: 2rem;
  margin-inline-end: .35rem;
  border-radius: .4rem;
  background: url("/icons/onewoven-192.png") center / contain no-repeat;
}
.checkout-brand span { color: #e2eee5; font-size: .875rem; font-weight: 500; }
.checkout-back { font-size: .875rem; font-weight: 650; }
.checkout-main { padding-block: 1rem 3rem; }
.checkout-main :focus { scroll-margin-top: 7rem; }

.checkout-hero {
  padding: clamp(1.4rem, 4.6vw, 3.5rem);
  border: 1px solid #59796f;
  border-radius: 1rem;
  background: linear-gradient(118deg, #11272f 40%, #184b40 100%);
  color: #f9fcf8;
}
.checkout-hero p { max-width: 44rem; margin: .7rem 0 0; color: #e2eee5; }
.checkout-hero .checkout-context {
  margin: 0 0 .6rem;
  color: #d6edc7;
  font-size: .875rem;
  font-weight: 700;
}
.checkout-hero h1 {
  max-width: 50rem;
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(1.75rem, 5.4vw, 3.35rem);
  font-weight: 600;
  line-height: 1.12;
  overflow-wrap: anywhere;
}
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 1fr);
  gap: clamp(.85rem, 3vw, 1.6rem);
  align-items: start;
  margin-top: clamp(.85rem, 3vw, 1.6rem);
}
.checkout-grid > .checkout-panel[hidden] + .checkout-side { grid-column: 1 / -1; max-width: 34rem; }
.checkout-grid-courses {
  grid-template-rows: auto 1fr;
  grid-template-areas: "courses offer" "courses order";
}
.checkout-grid-courses > :first-child { grid-area: offer; }
.checkout-grid-courses > :nth-child(2) { grid-area: courses; }
.checkout-grid-courses > :last-child { grid-area: order; }
.checkout-grid-courses:has(> .checkout-offer[hidden]) {
  grid-template-areas: "order order";
  grid-template-rows: auto;
}
.checkout-grid-courses:has(> .checkout-offer[hidden]) > .checkout-order { max-width: 34rem; }
.checkout-side { display: grid; min-width: 0; gap: .85rem; }
.checkout-panel {
  min-width: 0;
  padding: clamp(1rem, 2.7vw, 1.65rem);
  border: 1px solid var(--checkout-line);
  border-radius: 1rem;
  background: var(--checkout-white);
  box-shadow: 0 8px 24px #173b250a;
}
.checkout-panel h2 { margin: 0; font-size: 1.15rem; line-height: 1.25; }
.checkout-panel p { margin: .55rem 0 0; color: var(--checkout-muted); }
.checkout-panel-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .35rem 1rem; }
.checkout-panel-heading .checkout-rate { margin: 0; font-size: .9rem; }
.checkout-rate strong { color: var(--checkout-ink); }
.checkout-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  min-inline-size: 0;
  margin: .9rem 0;
  padding: 0;
  border: 0;
}
.checkout-options label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  align-items: start;
  gap: .7rem;
  min-height: 52px;
  padding: .65rem .7rem;
  border: 1px solid var(--checkout-line);
  border-radius: .65rem;
  background: var(--checkout-option);
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
}
.checkout-options label:hover { border-color: #75a68a; }
.checkout-options label:has(:checked) { border-color: var(--checkout-green); background: var(--checkout-selected); }
.checkout-options label:has(:disabled) { cursor: default; background: var(--checkout-paper); }
.checkout-options input { width: 1.15rem; height: 1.15rem; margin: .08em 0 0; accent-color: var(--checkout-green); }
.checkout-options small { display: block; margin-top: .25rem; color: var(--checkout-muted); font-weight: 500; }
.checkout-offer { background: var(--checkout-offer); border-color: var(--checkout-line); }
.checkout-offer .checkout-price {
  margin-top: .35rem;
  color: var(--checkout-ink);
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.035em;
}
.checkout-button {
  display: inline-flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: .65rem .85rem;
  border: 1px solid transparent;
  border-radius: .62rem;
  background: var(--checkout-green);
  color: #fff !important;
  font: inherit;
  font-weight: 700 !important;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.checkout-button:hover { background: #0d3c2a; }
.checkout-button:disabled { cursor: wait; opacity: .7; }
.checkout-secondary { background: var(--checkout-white); border-color: #739180; color: var(--checkout-link) !important; }
.checkout-secondary:hover { background: var(--checkout-selected); }
.checkout-offer .checkout-button, .checkout-order .checkout-button { margin-top: .85rem; }
.checkout-text-action {
  display: flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  margin-top: .35rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--checkout-link) !important;
  font-weight: 700 !important;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}
.checkout-order .checkout-status { margin: .5rem 0 0; overflow-wrap: anywhere; scroll-margin-block-end: 1.25rem; }
.checkout-standalone { width: min(100%, 35rem); margin-top: 1rem; }
.checkout-case { max-width: 38rem; padding-top: 2rem; }
.checkout-case form :is(input, select) { display: block; width: 100%; min-height: 44px; padding: .4rem .6rem; }
.checkout-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 51rem) {
  .checkout-options { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 42rem) {
  .checkout-grid { grid-template-columns: minmax(0, 1fr); }
  .checkout-grid-courses { grid-template-areas: "offer" "courses" "order"; }
  .checkout-grid-courses:has(> .checkout-offer[hidden]) { grid-template-areas: "order"; }
}

.checkout-referral { margin-block: .85rem; }
.checkout-referral label { display: block; font-weight: 650; }
.checkout-referral label span { font-weight: 400; }
.checkout-referral input {
  box-sizing: border-box; min-height: 44px; width: 100%; max-width: 20rem;
  margin-top: .25rem; padding: .55rem .7rem; border: 1px solid #73867d; border-radius: .45rem;
}
.checkout-referral p { font-size: .9rem; }

.referral-share { display: grid; gap: .5rem; max-width: 44rem; margin-block-start: 1rem; }
.referral-share label { font-weight: 700; }
.referral-share-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: stretch; }
.referral-share-row input { flex: 1 1 12rem; min-width: 0; max-width: 100%; padding: .6rem .75rem; border: 1px solid #73867d; border-radius: .45rem; }
.referral-share-row .checkout-button { width: auto; margin: 0; }
.referral-share input[type="text"] { font-family: ui-monospace, monospace; font-weight: 650; }
.referral-share p:empty { display: none; }


/* Policy pages use the checkout shell, with typography for sustained reading. */
.refund-policy {
  width: min(100% - 2rem, 50rem);
  display: grid;
  gap: 1rem;
  padding-top: 1rem;
  color: var(--checkout-ink);
  font-size: 1.0625rem;
  line-height: 1.65;
}
.refund-policy .checkout-hero { color: #fff; }
.refund-policy .checkout-hero h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); }
.refund-policy .checkout-hero p { color: #fff; }
/* Keep the destination beneath the sticky checkout bar, even at the end of the page. */
.refund-policy > .checkout-panel[id] { scroll-margin-block-start: 7rem; }
.refund-policy > .checkout-panel:target:last-child { min-block-size: calc(100svh - 8rem); }
.refund-policy .checkout-panel h2 {
  font-size: 1.375rem;
  font-weight: 750;
}
.refund-policy .checkout-panel h3 {
  margin: 1.25rem 0 .25rem;
  font-size: 1.125rem;
  line-height: 1.35;
}
.refund-policy .checkout-panel p { color: inherit; }
.refund-policy ol { padding-inline-start: 1.5rem; }
.refund-policy li + li { margin-top: .65rem; }
.refund-policy .checkout-panel a {
  color: var(--checkout-link);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .18em;
}


@media screen and (forced-colors: none) {
  .ow-checkout {
    background-image: radial-gradient(ellipse 75% 32rem at 90% 0%, var(--checkout-sheen), transparent);
    background-repeat: no-repeat;
  }
  html[data-theme="dark"] .ow-checkout {
    color-scheme: dark;
    --checkout-ink: #edf7ef;
    --checkout-muted: #ccede0;
    --checkout-line: #507062;
    --checkout-paper: #101e1b;
    --checkout-sheen: #223c33;
    --checkout-white: #192d27;
    --checkout-link: #a9d8c0;
    --checkout-option: #162b25;
    --checkout-selected: #28493d;
    --checkout-offer: #223e34;
  }
  html[data-theme="dark"] .ow-checkout :focus-visible { outline-color: #a9d8c0; }
}
