/* Checkout form (checkout.js) and the Worker-rendered account pages (/o/, /g/, /thanks). Uses the tokens in /css/site.css. */

/* .doc a { color: gold } would paint gold text on gold buttons inside .doc sections. */
.doc a.btn { color: var(--gold-ink); text-decoration: none; }
.doc a.btn.line { color: var(--ink); }

.tc-form { display: grid; gap: 10px; max-width: 560px; }
.tc-form [hidden] { display: none !important; }
.tc-label { display: block; font: 700 15px/1.4 var(--f-body); color: var(--ink); margin: 14px 0 4px; padding: 0; }
.tc-label .muted, .tc-form .muted { font-weight: 400; color: var(--muted); }
.tc-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }

.tc-product { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; transition: border-color .15s ease; }
.tc-product:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.tc-product input { margin-top: 4px; accent-color: var(--gold); width: 18px; height: 18px; flex: none; }
.tc-product-body { flex: 1; display: grid; gap: 6px; min-width: 0; }
.tc-product-head { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; flex-wrap: wrap; }
.tc-price { font: 700 18px/1 var(--f-body); color: var(--gold); }
.tc-blurb { color: var(--muted); font-size: 15px; }
.tc-product .tag { justify-self: start; }

.tc-input { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 400 16px/1.4 var(--f-body); }
textarea.tc-input { min-height: 88px; resize: vertical; }
.tc-input:focus-visible, .tc-product:has(input:focus-visible), .tc-tick input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
select.tc-input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }

.tc-tick { display: flex; gap: 12px; align-items: flex-start; color: rgba(251, 246, 236, 0.88); font-size: 15px; line-height: 1.5; cursor: pointer; }
.tc-tick input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--gold); }
.tc-tick em { color: var(--muted); font-style: normal; font-size: 13px; }

.tc-error, .field-error { color: #FFB4A8; background: rgba(255, 77, 77, 0.1); border: 1px solid rgba(255, 77, 77, 0.4); border-radius: 12px; padding: 12px 14px; margin: 6px 0 0; font-size: 15px; }
.tc-pay { width: 100%; margin-top: 10px; }
.tc-pay[disabled] { opacity: .7; cursor: progress; transform: none; }
.tc-under { color: var(--muted); font-size: 14px; text-align: center; margin: 4px 0 0; }

/* Account pages */
.account .acct-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 36px; }
.account .acct-card { display: grid; gap: 10px; align-content: start; margin-top: 16px; }
.account .acct-grid .acct-card { margin-top: 0; }
.account .acct-card h2 { margin: 0; font-size: 22px; }
.account .acct-card .tag { justify-self: start; }
.account .acct-card .btn { justify-self: start; margin-top: 6px; }
.clip-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.doc .clip-list li { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0; }
.copy-row { display: flex; gap: 10px; flex-wrap: wrap; }
.copy-row input { flex: 1 1 240px; min-width: 0; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--ground); color: var(--ink); font: 500 14px/1.3 var(--f-mono); }
.gift-note { margin: 24px 0; padding: 18px 22px; border-left: 3px solid var(--gold); font-size: 20px; line-height: 1.5; color: var(--ink); }
.gift-form { max-width: 520px; margin-top: 28px; }
.gift-form label { font-weight: 700; }
.gift-form input[type="email"] { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--ground); color: var(--ink); font: 400 16px/1.4 var(--f-body); }
.gift-form .btn { width: 100%; }

/* Pass page: make tonight's clip */
.make-clip { margin-top: 32px; max-width: 620px; }
.make-clip .photo-preview { width: 100%; max-height: 320px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); margin-top: 8px; }
.make-clip input[type="file"] { padding: 10px; }
.tc-form[hidden] { display: none; }
.tc-product.is-soon { cursor: default; opacity: .62; }
.tc-product.is-soon strong { color: var(--muted, inherit); }

.tc-soon { max-width: 560px; margin: 8px 0; }
.tc-soon__lead { font: 600 17px/1.5 var(--f-body); color: var(--ink); margin: 0 0 6px; }
.tc-soon__prices { margin: 0 0 14px; }
.tc-notify { display: grid; gap: 8px; }
.tc-notify__row { display: flex; gap: 8px; flex-wrap: wrap; }
.tc-notify__row .tc-input { flex: 1 1 220px; min-width: 0; }
.tc-notify__btn { flex: 0 0 auto; width: auto; margin-top: 0; }
.tc-notify .tc-under, .tc-soon .tc-under { text-align: left; }
