/*
Theme Name: SCC Theme
Description: Sydney Comedy Cellar prototype theme. Look taken from demo/booking-demo.src.html.
Version: 0.1.0
*/
:root {
  color-scheme: light;
  --paper: #f6f1e6; --card: #fbf8f1; --ink: #15130f; --muted: #5d564a; --rule: #d8cfbd;
  --good: #2e6a3b; --bad: #a3321f;
  --display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --body: "Figtree", "Segoe UI", Helvetica, Arial, sans-serif;
  --hand: "Permanent Marker", "Comic Sans MS", cursive;
  --r: 10px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; }
.wrap { max-width: 560px; margin: 0 auto; padding-inline: 16px; padding-block: 0 48px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible, .date:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }
.label { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }

/* Hero */
.hero { display: grid; justify-items: center; gap: 10px; padding-block: 20px 8px; text-align: center; }
.logo { width: 150px; height: 150px; mix-blend-mode: multiply; }
.headline-img { width: min(100%, 420px); mix-blend-mode: multiply; }
.hero .sub { font-weight: 600; font-size: 18px; }
.hero .addr { color: var(--muted); font-size: 14px; }

.step { display: grid; gap: 12px; padding-block: 18px; border: 0; border-top: 1px solid var(--rule); margin: 0; min-width: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 8px; }
legend { padding: 0; margin-bottom: 8px; }

/* Show + dates */
.shows { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .shows { grid-template-columns: 1fr; } }
.show { background: var(--card); border: 2px solid var(--rule); border-radius: var(--r); padding: 12px; display: grid; gap: 4px; }
.show { cursor: pointer; position: relative; align-content: start; min-height: 44px; }
.show:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }
.show input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.show:has(input:checked) { border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.show .sname { font-family: var(--display); font-size: 20px; font-weight: 800; line-height: 1.1; }
.show .when { font-weight: 700; }
.show .price { font-size: 14px; color: var(--muted); }
.showhead { display: flex; gap: 12px; align-items: center; }
.showhead > div { min-width: 0; display: grid; gap: 2px; }
.showhead h2 { font-size: 30px; font-weight: 800; }
.showhead img { width: 64px; mix-blend-mode: multiply; flex: none; }
.meta { font-size: 14px; color: var(--muted); }
.dates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.date { position: relative; background: var(--card); border: 1.5px solid var(--rule); border-radius: 8px; padding: 8px 4px; cursor: pointer; display: grid; gap: 1px; justify-items: center; min-height: 64px; text-align: center; }
.date input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.date b, .date span { text-transform: uppercase; }
.date b { font-size: 13px; letter-spacing: .06em; }
.date span { font-family: var(--display); font-weight: 700; font-size: 17px; }
.date small { font-size: 12px; color: var(--muted); }
.date small em { font-style: normal; font-weight: 700; color: var(--bad); }
.date:has(input:checked) small em { color: inherit; }
.date .sp-mark { font-style: normal; font-size: 11px; font-weight: 700; color: var(--good); line-height: 1.2; }
.date:has(input:checked) .sp-mark { color: inherit; }
.urg { margin: 10px 0 0; font-weight: 700; color: var(--bad); font-size: 15px; }
.urg[hidden] { display: none; }
.date:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.date:has(input:checked) small { color: #d9d2c4; }
.date:has(input:disabled) { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.date.none { opacity: .5; border-style: dashed; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 4px 0; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; cursor: pointer; justify-self: start; }

/* Quantity */
.qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qty h3 { font-size: 20px; }
.qty input[type=number] { width: 2.5em; text-align: center; font-family: var(--display); font-weight: 800; font-size: 24px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; min-height: 46px; -moz-appearance: textfield; appearance: textfield; font-variant-numeric: tabular-nums; }
.qty input[type=number]::-webkit-inner-spin-button, .qty input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty input[type=number]:focus-visible { border-bottom-color: var(--ink); }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; font-size: 22px; font-weight: 700; cursor: pointer; line-height: 1; }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper output { font-family: var(--display); font-weight: 800; font-size: 24px; min-width: 1.5ch; text-align: center; font-variant-numeric: tabular-nums; }

/* Form */
.field { display: grid; gap: 4px; }
.field label { font-weight: 600; font-size: 15px; }
.field input { border: 1.5px solid var(--muted); border-radius: 8px; background: var(--card); padding: 11px 12px; min-height: 46px; width: 100%; }
.field input[aria-invalid="true"] { border-color: var(--bad); }
.err { color: var(--bad); font-size: 14px; font-weight: 600; }
.fine { font-size: 13px; color: var(--muted); }
.check { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; background: var(--card); border: 1.5px solid var(--rule); border-radius: 8px; padding: 12px; cursor: pointer; }
.check[hidden] { display: none; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); }
.club { display: grid; border: 2px solid var(--ink); border-radius: var(--r); background: var(--card); overflow: hidden; }
.club .check { border: 0; border-radius: 0; background: transparent; }
.club .nested { margin-left: 36px; padding-top: 0; font-size: 15px; }
.club-emails { padding: 0 12px 12px 48px; }
.club-emails[hidden] { display: none; }
.club-emails summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); padding: 6px 0; min-height: 32px; }
.club-emails .nested { margin-left: 0; margin-top: 4px; }
.alert { border-left: 4px solid var(--bad); background: #f6e3dc; padding: 10px 12px; border-radius: 4px; font-size: 15px; }

/* Total + CTA */
.tonight-notice { border-left: 4px solid var(--bad); background: #f6e3dc; padding: 12px; border-radius: 4px; display: grid; gap: 4px; }
.tonight-notice .offer-date { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.1; }
.tonight-notice .offer-show { font-weight: 700; }
.booking-line { font-weight: 700; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.total h3 { font-size: 22px; }
.total .amt { font-family: var(--display); font-weight: 800; font-size: 34px; font-variant-numeric: tabular-nums; }
.total > div { text-align: right; }
.total .was { margin: 0; color: var(--muted); font-size: 18px; font-variant-numeric: tabular-nums; }
.total .sp-discount { margin: 0; font-weight: 700; color: var(--ink); }
.sp-line { margin: 4px 0 8px; font-size: 15px; }
.sp-line a { color: inherit; font-weight: 700; }
.code-box { margin: 8px 0; font-size: 15px; }
.code-box summary { cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: flex; align-items: center; }
.code-box [data-code-apply] { min-width: 44px; padding: 4px 8px; } /* "Apply" is short; keep the 44px finger target */
.code-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.code-row input { flex: 1 1 140px; min-height: 44px; }
.cta { display: block; width: 100%; text-align: center; text-decoration: none; background: var(--ink); color: var(--paper); border: 0; border-radius: var(--r); padding: 16px; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: .02em; cursor: pointer; }
.cta.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); font-size: 18px; padding: 12px; }
.cta:disabled { opacity: .5; cursor: progress; }

/* Confirmation */
.panel { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; }
.panel h2 { font-size: 26px; font-weight: 800; }
.rows { display: grid; gap: 6px; margin: 0; }
.rows div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dotted var(--rule); padding-bottom: 6px; }
.rows dt { color: var(--muted); }
.rows dd { margin: 0; font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.rows a.map { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.tickets { display: grid; gap: 10px; }
.ticket { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 8px; padding: 12px; }
.ticket h3 { font-size: 17px; }
.stamp { font-family: var(--hand); font-size: 22px; transform: rotate(-4deg); }
.hand { font-family: var(--hand); font-weight: 400; }
.foot { display: grid; justify-items: center; gap: 4px; padding-top: 24px; text-align: center; }
.foot img { width: min(100%, 200px); mix-blend-mode: multiply; }
@media (prefers-reduced-motion: no-preference) { .panel { animation: rise .35s ease-out both; } @keyframes rise { from { transform: translateY(6px); } to { transform: none; } } }

/* Pay-for-order page: WooCommerce's own markup, dressed as the demo's pay step (a card, dotted rows, black button). */
.pay-h { font-size: 26px; font-weight: 800; margin-top: 18px; }
.woocommerce-order-pay form#order_review { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); padding: 16px; margin-top: 12px; display: grid; gap: 12px; }
.woocommerce table.shop_table { width: 100%; border-collapse: collapse; background: transparent; border: 0; margin: 0; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border: 0; border-bottom: 1px dotted var(--rule); padding: 8px 0; text-align: left; font-weight: 400; vertical-align: top; }
.woocommerce table.shop_table thead th { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.woocommerce table.shop_table td:last-child, .woocommerce table.shop_table th:last-child { text-align: right; }
.woocommerce table.shop_table tfoot th { color: var(--muted); font-weight: 400; }
.woocommerce table.shop_table tfoot td { font-weight: 600; }
.woocommerce #payment { background: transparent; border: 0; padding: 0; border-radius: 0; }
.woocommerce #payment ul.payment_methods { list-style: none; margin: 0 0 12px; padding: 0; border: 0; }
.woocommerce #payment ul.payment_methods li { padding: 0; }
.woocommerce #payment div.payment_box { background: transparent !important; color: var(--ink) !important; border: 2px dashed var(--ink); border-radius: var(--r); padding: 12px; margin: 8px 0 0; font-size: 14px; }
.woocommerce #payment div.payment_box::before { display: none !important; }
.woocommerce-privacy-policy-text { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.woocommerce #payment #place_order { display: block; width: 100%; float: none; min-height: 52px; background: var(--ink); color: var(--paper); border: 0; border-radius: var(--r); padding: 14px; font: 800 20px var(--display); cursor: pointer; }
.woocommerce #payment .form-row { padding: 0; margin: 0; }

/* Comic banner (#59): who the free ticket is from; the "gone" variant is outlined instead of filled. */
.gift { background: var(--ink); color: var(--paper); border-radius: 12px; padding: 14px; display: grid; gap: 6px; margin-bottom: 16px; }
.gift[hidden] { display: none; }
.gift .hand { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.15; transform: rotate(-2deg); transform-origin: left; margin: 0; }
.gift p { margin: 0; font-size: 14.5px; }
.gift.gone { background: var(--card); color: var(--ink); border: 2px solid var(--ink); }
.gift.gone .hand { font-size: 21px; }

/* Door-list line on the ticket page (#41) */
.shot { background: #fff4c9; border-radius: 8px; padding: 10px 12px; font-weight: 700; font-size: 15px; }
.legal h1 { font-size: 30px; }
.legal h2 { font-size: 20px; margin-top: 8px; }
.legal ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.legal-links a { color: inherit; }
