:root {
  --cream: #F8F7F3;
  --ink: #3F3F3F;
  --muted: #6e6e6a;
  --line: #dedbd2;
  --panel: #EFEDE6;
  --accent: #F3E6A9;
  --sage: #C9DBBA;
  --ok: #4f6b3c;
  --err: #9b2c2c;
  --radius: 10px;
  --heading: "Playfair Display", Georgia, serif;
  --body: "Anonymous Pro", ui-monospace, monospace;
  --meta: "Newsreader", Georgia, serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.pending { height: 0; margin: 0 !important; overflow: hidden; visibility: hidden; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.5 var(--body); }
h2 { font: 600 1.25rem/1.3 var(--heading); margin: 2rem 0 .75rem; }
button, input, select { font: inherit; color: inherit; }
button, select, label.addon, .choice { cursor: pointer; }

.top { text-align: center; padding: 1.25rem 16px 1rem; border-bottom: 1px solid var(--line); }
.brand { font: 600 1.75rem/1 var(--heading); color: var(--ink); text-decoration: none; letter-spacing: .01em; }
.trust { margin: .4rem 0 0; font: .85rem var(--meta); color: var(--muted); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); max-width: 1080px; margin: 0 auto; }
.form-col { padding: 2rem 48px 3rem 16px; max-width: 600px; justify-self: end; width: 100%; }
.summary { background: var(--panel); border-left: 1px solid var(--line); padding: 2rem 16px 2rem 40px; min-height: calc(100vh - 80px); }

.section-label { text-align: center; font: .9rem var(--meta); color: var(--muted); margin: 0 0 .6rem; }
.express-none { text-align: center; font-size: .85rem; color: var(--muted); }
.or { display: flex; align-items: center; gap: .75rem; margin: 1.5rem 0 0; color: var(--muted); font-size: .85rem; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

.choice-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.choice { display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem; border-top: 1px solid var(--line); }
.choice:first-child { border-top: 0; }
.choice.selected { background: #FBF8EA; outline: 1px solid var(--ink); outline-offset: -1px; }
.choice input { accent-color: var(--ink); margin: 0; }
.choice .label { flex: 1; }
.choice .price { font-weight: 700; }

.addon { display: flex; gap: .85rem; align-items: flex-start; margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.addon input { width: 20px; height: 20px; margin: .15rem 0 0; accent-color: var(--ink); flex: none; }
.addon-title { display: block; font-weight: 700; }
.addon-text { display: block; font-size: .9rem; color: var(--muted); }

.upsell { margin-top: 1.5rem; }
.upsell .section-label { text-align: left; font: 600 1.05rem var(--heading); color: var(--ink); }
.upsell-card { display: flex; gap: .9rem; align-items: center; padding: .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.upsell-card img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--panel); flex: none; }
.upsell-info { flex: 1; min-width: 0; }
.upsell-name { margin: 0; font-weight: 700; }
.upsell-price { margin: .1rem 0 .35rem; }
.upsell-price s { color: var(--muted); }
.upsell-info select { width: 100%; max-width: 200px; padding: .35rem .5rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.btn-small { padding: .6rem 1.1rem; border: 0; border-radius: 999px; background: var(--ink); color: var(--cream); font: 1rem var(--meta); }
.btn-small:hover { background: #2b2b2b; }

.muted { color: var(--muted); font-size: .9rem; margin: -.25rem 0 .75rem; }
.small { font-size: .8rem; } .center { text-align: center; }
.sub-terms { margin-top: 1rem; font-size: .85rem; color: var(--muted); }
.error { margin-top: 1rem; padding: .75rem 1rem; border: 1px solid var(--err); color: var(--err); border-radius: 8px; background: #fff; }
.btn-pay { width: 100%; margin-top: 1.25rem; padding: 1.1rem; border: 0; border-radius: var(--radius); background: var(--ink); color: var(--cream); font: 500 1.15rem var(--meta); }
.btn-pay:hover:not(:disabled) { background: #2b2b2b; }
.btn-pay:disabled { opacity: .55; cursor: not-allowed; }

.lines { list-style: none; margin: 0; padding: 0; }
.line { display: flex; gap: .9rem; align-items: center; padding: .6rem 0; }
.thumb { position: relative; flex: none; }
.thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.qty { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--ink); color: #fff; font-size: .75rem; display: grid; place-items: center; }
.line-info { flex: 1; min-width: 0; }
.line-name { margin: 0; font-weight: 700; }
.line-opts, .line-note { margin: 0; font-size: .85rem; color: var(--muted); }
.line-note { color: var(--ok); }
.line-price { text-align: right; white-space: nowrap; }
.line-price s { display: block; font-size: .85rem; color: var(--muted); }

.totals { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.totals div { display: flex; justify-content: space-between; margin: .35rem 0; }
.totals dt, .totals dd { margin: 0; }
.totals .grand { margin-top: .9rem; font: 600 1.35rem var(--heading); }
.totals .grand small { font: .8rem var(--body); color: var(--muted); }
.savings { margin: .75rem 0 0; font-weight: 700; color: var(--ok); }
.free-ship { margin: .5rem 0 0; font-size: .9rem; padding: .6rem .8rem; border-radius: 8px; background: var(--accent); }

.summary-toggle { display: none; }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .form-col { padding: 1.25rem 16px 2.5rem; max-width: none; justify-self: stretch; order: 2; }
  .summary { order: 1; min-height: 0; border-left: 0; border-bottom: 1px solid var(--line); padding: 1rem 16px; display: none; }
  .summary.open { display: block; }
  .summary-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 1rem 16px; border: 0; border-bottom: 1px solid var(--line); background: var(--panel); font: .95rem var(--meta); }
}

.pp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.pp-row:has(#pp-venmo:empty) { grid-template-columns: 1fr; }
#pp-venmo:empty { display: none; }
.pp-note { text-align: center; font-size: .8rem; color: var(--muted); margin: .5rem 0 0; }
@media (max-width: 480px) { .pp-row { grid-template-columns: 1fr; } }
