body.checkout-screen {
  background: #f3eee6;
}

body.checkout-screen .top { display: none; }

body.checkout-screen main {
  width: 100%;
  max-width: none;
  margin: 0;
}

body.checkout-screen h1,
body.checkout-screen h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
}

body.checkout-screen .co h1 { font-size: 2.3rem; margin: 0; }
body.checkout-screen .done h1 { font-size: 2.8rem; }

.site-top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 243, 238, 0.94);
  border-bottom: 1px solid var(--line);
}

.site-top .wrap,
.done { box-sizing: border-box; }

.site-top .wrap {
  width: min(1160px, calc(100% - 64px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.site-top .brand img { height: 30px; width: auto; }
.site-top .top-right { display: flex; align-items: center; gap: 18px; font-size: 0.93rem; color: var(--muted); }
.site-top .top-right a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.secure { display: inline-flex; align-items: center; gap: 7px; font-size: 0.88rem; color: var(--muted); }
.secure svg { color: #3d6b4f; }

.co {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: calc(100vh - 69px);
  min-height: calc(100dvh - 69px);
}

.co-sum {
  background: var(--paper);
  border-right: 1px solid var(--line);
  padding: 56px 64px 56px max(32px, calc((100vw - 1160px) / 2));
}

.co-pay {
  padding: 56px max(32px, calc((100vw - 1160px) / 2)) 56px 64px;
  background: var(--bg);
}

.co-inner { max-width: 470px; }
.co-sum .co-inner { margin-left: auto; }
.co .lede { color: var(--muted); font-weight: 300; font-size: 1rem; margin: 0.6rem 0 0; }
.co .eyebrow { color: #a65d67; }

.seg {
  display: inline-flex;
  padding: 4px;
  margin-top: 26px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
}

.seg button {
  height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 400 0.92rem var(--sans);
}

.seg button.on { background: var(--charcoal); color: #f8f4ef; font-weight: 600; }

.planpick { display: grid; gap: 10px; margin: 22px 0; }

.pp {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: left;
  font: inherit;
  color: inherit;
}

.pp.on { border: 1.5px solid var(--charcoal); box-shadow: 0 4px 14px rgba(28, 25, 23, 0.06); }
.pp .rd { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #b9aea3; display: grid; place-items: center; flex: 0 0 auto; }
.pp.on .rd { border-color: var(--charcoal); }
.pp.on .rd::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--charcoal); }
.pp .t { flex: 1; min-width: 0; }
.pp .t b { display: block; font-weight: 600; }
.pp .t small, .pp .amt small { display: block; color: var(--muted); font-size: 0.82rem; font-weight: 400; }
.pp .amt { text-align: right; font-weight: 600; }

.lines { margin-top: 8px; border-top: 1px solid var(--line); }
.ln { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.ln span:first-child { color: var(--muted); }
.ln.free span:last-child { color: #3d6b4f; font-weight: 600; }
.ln.total { border-bottom: 0; padding-top: 18px; }
.ln.total span { color: var(--ink); font-weight: 600; }
.ln.total span:last-child { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; letter-spacing: -0.02em; }

.then-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #e6f0e9;
  color: #2f5640;
  font-size: 0.9rem;
  line-height: 1.45;
}

.incl { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 9px; font-size: 0.92rem; color: var(--muted); }
.incl li, .alert, .then-box { }
.incl li { display: flex; gap: 10px; align-items: flex-start; }
.incl svg { flex: 0 0 auto; margin-top: 3px; color: #3d6b4f; }

.pay-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pay-head h2 { font-size: 1.5rem; }

#payment-element { margin-top: 22px; min-height: 12px; }

.opening {
  margin: 1.4rem 0 0;
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fbeaea;
  border: 1px solid #efcfcf;
  color: #7a2c2c;
  font-size: 0.92rem;
  line-height: 1.45;
  margin-top: 20px;
}
.alert b { display: block; color: #5e1f1f; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 52px;
  padding: 0 24px;
  border: 1px solid var(--charcoal);
  border-radius: 999px;
  background: var(--charcoal);
  color: #f8f4ef;
  font: 600 1rem var(--sans);
  text-decoration: none;
}
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--ink); border-color: #cfc3b6; }
.pay-btn { margin-top: 20px; }
.pay-btn:disabled { opacity: 0.6; }
.pay-fine { font-size: 0.84rem; color: var(--muted); line-height: 1.5; margin: 14px 0 0; text-align: center; }
.powered { display: flex; justify-content: center; gap: 8px; margin-top: 22px; font-size: 0.8rem; color: #857b72; }
.powered b { font-weight: 600; color: var(--ink); }

.done { max-width: 620px; margin: 72px auto 96px; text-align: center; }
.done .ok-ic {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #e6f0e9;
  color: #3d6b4f;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
}
.done .ok-ic svg { width: 32px; height: 32px; }
.done .lede { color: var(--muted); font-weight: 300; margin: 0.8rem auto 0; max-width: 520px; }
.receipt {
  margin: 34px auto 0;
  background: #fffdfb;
  border: 1px solid var(--line);
  border-radius: 22px;
  text-align: left;
  padding: 8px 26px;
  box-shadow: var(--shadow);
}
.receipt .ln:last-child { border-bottom: 0; }
.receipt .ln span:last-child { font-weight: 600; text-align: right; color: var(--ink); }
.done .acts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.next3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 40px; text-align: left; }
.next3 div { background: #fffdfb; border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.next3 b { display: block; margin-bottom: 4px; }
.next3 span { font-size: 0.86rem; color: var(--muted); display: block; }
.next3 .n { font-family: var(--serif); color: #a65d67; font-size: 1.3rem; margin-bottom: 6px; }
.done .fine { font-size: 0.84rem; color: var(--muted); margin-top: 28px; }

@media (max-width: 760px) {
  .site-top .wrap { width: calc(100% - 40px); height: 60px; }
  .site-top .brand img { height: 26px; }
  .top-right .long { display: none; }
  .co { grid-template-columns: 1fr; min-height: 0; }
  .co-sum, .co-pay { padding: 28px 20px 32px; border-right: 0; }
  .co-sum { border-bottom: 1px solid var(--line); }
  .co-inner { max-width: none; }
  .co h1, .done h1 { font-size: 2rem; }
  .pp { padding: 14px; gap: 12px; }
  .done { margin: 44px auto 64px; width: calc(100% - 40px); }
  .next3 { grid-template-columns: 1fr; }
  .done .acts .btn { width: 100%; }
  .seg button { padding: 0 12px; font-size: 0.84rem; }
  .pp .amt { font-size: 0.92rem; }
  .codebox .row { flex-wrap: wrap; }
  .codebox .input { min-width: 0; flex: 1; }
}

.applied {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e6f0e9;
  color: #3d6b4f;
  font-size: 0.84rem;
  font-weight: 600;
  margin-top: 16px;
}
.applied svg { flex: 0 0 auto; }
.ln .ds { display: block; font-size: 0.8rem; color: var(--soft, #857b72); font-weight: 400; margin-top: 2px; }
.codebox { margin-top: 8px; }
.codebox .field { display: block; font-size: 0.82rem; font-weight: 600; margin: 0 0 8px; }
.codebox .row { display: flex; gap: 10px; }
.codebox .input {
  height: 48px;
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  background: #fff;
  font: inherit;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.codebox .input.bad { border-color: #c9848c; box-shadow: 0 0 0 3px #f6e6e7; }
.codebox .btn { height: 48px; padding: 0 18px; }
.codebox .msg { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 0; font-size: 0.86rem; line-height: 1.4; color: #a65d67; }
.codebox .msg svg { flex: 0 0 auto; margin-top: 2px; }
.codechip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 8px 10px 14px;
  border: 1px solid #c5d9cc;
  background: #e6f0e9;
  border-radius: 14px;
  color: #2f5640;
}
.codechip .c { font-family: ui-monospace, Menlo, monospace; font-weight: 600; }
.codechip .grow { flex: 1; min-width: 0; line-height: 1.35; }
.codechip .rm { border: 0; background: transparent; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font: inherit; }
.codechip svg { flex: 0 0 auto; color: #3d6b4f; }
