/* Ticketing for Community Store - public pages. Inherits the theme's fonts and colours where possible. */
.cst { --cst-muted: #6b7280; --cst-line: rgba(0, 0, 0, .12); --cst-accent: var(--bs-primary, #2563eb); max-width: 960px; margin: 0 auto; }
.cst-muted { color: var(--cst-muted); }
.cst-back { margin-bottom: 1rem; }
.cst-back a { text-decoration: none; }

/* Show list */
.cst-card-list { display: flex; flex-direction: column; gap: 10px; }
.cst-card {
    display: flex; align-items: center; gap: 16px; padding: 14px 16px;
    border: 1px solid var(--cst-line); border-radius: 12px; color: inherit; text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
}
.cst-card:hover { border-color: var(--cst-accent); box-shadow: 0 2px 12px rgba(0, 0, 0, .06); color: inherit; }
.cst-card-date { display: flex; flex-direction: column; align-items: center; min-width: 52px; line-height: 1.1; }
.cst-card-month { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cst-accent); font-weight: 700; }
.cst-card-day { font-size: 1.75rem; font-weight: 800; }
.cst-card-dow { font-size: .75rem; color: var(--cst-muted); }
.cst-card-body { flex: 1; min-width: 0; }
.cst-card-title { font-size: 1.15rem; font-weight: 700; }
.cst-card-status { white-space: nowrap; }
.cst-from { font-weight: 600; }
.cst-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .07); font-size: .85rem; font-weight: 600; }
.cst-badge-danger { background: #fee2e2; color: #991b1b; }
.cst-badge-warning { background: #fef3c7; color: #92400e; }

/* Show detail */
.cst-show-image { width: 100%; max-height: 420px; object-fit: cover; border-radius: 14px; margin-bottom: 1.25rem; }
.cst-show-title { margin-bottom: .25rem; }
.cst-show-artist { font-size: 1.15rem; color: var(--cst-muted); }
.cst-show-facts { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: 10px; }
.cst-show-facts li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.cst-show-facts strong { min-width: 64px; }
.cst-show-description { margin: 1.5rem 0; }
.cst-tickets { margin-top: 2rem; }
.cst-tickets-heading { font-size: 1.35rem; margin-bottom: .75rem; }
.cst-ticket-type {
    display: grid; grid-template-columns: 1fr auto auto; gap: 12px 16px; align-items: center;
    padding: 14px 0; border-top: 1px solid var(--cst-line); margin: 0;
}
.cst-ticket-type:last-of-type { border-bottom: 1px solid var(--cst-line); }
.cst-ticket-type-name { font-weight: 700; }
.cst-ticket-type-price { text-align: right; }
.cst-price { font-size: 1.15rem; font-weight: 700; display: block; }
.cst-plus-tax { font-size: .8rem; }
.cst-ticket-type-buy { display: flex; gap: 8px; align-items: center; }
.cst-ticket-type-buy select { width: auto; min-width: 4.5rem; }
.cst-low { color: #b45309; font-size: .85rem; font-weight: 600; }
.cst-fine-print { font-size: .85rem; margin-top: .75rem; }
@media (max-width: 575px) {
    .cst-ticket-type { grid-template-columns: 1fr auto; }
    .cst-ticket-type-buy { grid-column: 1 / -1; justify-content: flex-end; }
}

/* Tickets */
.cst-tickets-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.cst-ticket-list { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin: 1rem 0; }
.cst-ticket {
    border: 1px solid var(--cst-line); border-radius: 16px; overflow: hidden; background: #fff; color: #111;
    display: flex; flex-direction: column; break-inside: avoid; page-break-inside: avoid;
}
.cst-ticket-head { padding: 16px 18px 12px; background: #111; color: #fff; }
.cst-ticket-photo { display: block; width: 100%; height: auto; aspect-ratio: 12 / 5; object-fit: cover; }
.cst-ticket-show { font-size: 1.2rem; font-weight: 800; line-height: 1.2; }
.cst-ticket-when, .cst-ticket-where { font-size: .9rem; opacity: .9; margin-top: 4px; }
.cst-ticket-qr { position: relative; padding: 18px 18px 6px; display: flex; justify-content: center; }
.cst-ticket-qr svg { width: 100%; max-width: 260px; height: auto; aspect-ratio: 1 / 1; }
.cst-ticket-qr svg .qr-dark, .cst-ticket-qr svg path { fill: #000; }
.cst-ticket-stamp {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-8deg);
    padding: 6px 14px; border: 3px solid #b91c1c; color: #b91c1c; background: rgba(255, 255, 255, .92);
    font-weight: 800; text-transform: uppercase; letter-spacing: .05em; border-radius: 8px; text-align: center;
}
.cst-ticket-void .cst-ticket-stamp, .cst-ticket-refunded .cst-ticket-stamp, .cst-ticket-inactive .cst-ticket-stamp { position: static; transform: none; margin: 40px 0; }
.cst-ticket-used .cst-ticket-qr svg { opacity: .35; }
.cst-ticket-meta { margin: 0; padding: 6px 18px 16px; display: grid; gap: 6px; }
.cst-ticket-meta > div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--cst-line); padding-bottom: 4px; }
.cst-ticket-meta dt { font-weight: 600; color: var(--cst-muted); margin: 0; }
.cst-ticket-meta dd { margin: 0; text-align: right; }
.cst-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; font-size: .9rem; }
.cst-ticket-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 0 18px 18px; }
.cst-ticket-action img { height: 44px; width: auto; display: block; }
.cst-share { text-align: center; margin: 8px 0 0; font-size: .9rem; }

/* Order tickets block on the checkout complete page */
.cst-order-tickets { border: 1px solid var(--cst-line, rgba(0,0,0,.12)); border-radius: 12px; padding: 16px 18px; margin: 1rem 0 1.5rem; }
.cst-order-tickets h2 { font-size: 1.25rem; }

@media print {
    .cst-no-print, .cst-print, .cst-share, .cst-ticket-actions, header, footer, nav, .ccm-toolbar-visible #ccm-toolbar { display: none !important; }
    .cst-ticket-list { display: block; }
    .cst-ticket { margin: 0 0 16px; border-color: #999; }
    .cst-ticket-head { background: #fff !important; color: #000 !important; border-bottom: 1px solid #999; }
}
.cst-ticket-action { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 10px; background: #000; color: #fff; font-weight: 600; font-size: .9rem; text-decoration: none; }
.cst-ticket-action:hover { color: #fff; opacity: .88; }
.cst-ticket-action:has(img) { background: transparent; padding: 0; min-height: 0; }
.cst-presale { border: 2px dashed var(--cst-accent); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.cst-presale-unlocked { border-style: solid; background: rgba(37, 99, 235, .05); }
.cst-presale-form label { display: block; margin-bottom: 6px; }
.cst-presale-row { display: flex; gap: 8px; max-width: 420px; }
.cst-presale-row input { text-transform: uppercase; letter-spacing: .05em; }
.cst-badge-presale { background: #dbeafe; color: #1e40af; font-size: .7rem; vertical-align: middle; }
.cst-ticket-transferred .cst-ticket-stamp { position: static; transform: none; margin: 40px 0; border-color: #6b7280; color: #374151; }
.cst-id-note { margin: 0 18px 10px; padding: 8px 10px; border-radius: 8px; background: #fef3c7; color: #92400e; font-size: .85rem; font-weight: 600; }
.cst-ticket-changes { padding: 0 18px 16px; display: grid; gap: 10px; }
.cst-ticket-changes label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 4px; }
.cst-inline { display: flex; gap: 6px; }
.cst-transfer summary { cursor: pointer; font-weight: 600; color: var(--cst-accent); }
.cst-transfer form { display: grid; gap: 8px; margin-top: 8px; }
.cst-transfer label input[type=text], .cst-transfer label input[type=email] { margin-top: 2px; font-weight: 400; }
.cst-check { font-weight: 400 !important; display: flex !important; gap: 6px; align-items: flex-start; }
.cst-door-price { display: block; font-size: .8rem; }
.cst-festival-days { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.cst-festival-day { padding: 4px 10px; border-radius: 999px; background: #f1f3f5; font-size: .9rem; }
.cst-festival-day.is-full { background: #fde2e1; color: #9b1c1c; }
.cst-validity-label { font-size: .85rem; font-weight: 600; color: #0b5cad; }
.cst-days-select { margin-bottom: 6px; min-width: 12em; }
.cst-pickup { background: #fff8e6; padding: 8px 12px; border-radius: 8px; }

/* Festival lineup and festival shows */
.cst-festival-of { margin: 0 0 .25rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; }
.cst-wristband-note { margin: 1rem 0; padding: .75rem 1rem; border-radius: 8px; background: rgba(37, 99, 235, .08); border: 1px solid rgba(37, 99, 235, .25); }
.cst-wristband-note a { margin-left: .25rem; }
.cst-lineup { margin-top: 2rem; }
.cst-lineup-day { font-size: 1.1rem; margin: 1.25rem 0 .5rem; }
.cst-lineup-list { list-style: none; margin: 0; padding: 0; }
.cst-lineup-list li { display: grid; grid-template-columns: 5.5rem 1fr auto; gap: .5rem; padding: .5rem 0; border-bottom: 1px solid rgba(0, 0, 0, .08); align-items: start; }
.cst-lineup-list li.is-cancelled .cst-lineup-what { text-decoration: line-through; opacity: .6; }
.cst-lineup-time { font-variant-numeric: tabular-nums; font-weight: 600; }
.cst-lineup-tix { text-align: right; white-space: nowrap; }
.cst-promo { margin: 0 0 12px; }
.cst-promo summary { cursor: pointer; color: inherit; text-decoration: underline; font-size: .95em; }
.cst-promo-applied { display: flex; gap: 12px; align-items: center; padding: 8px 12px; border-radius: 8px; background: #ecfdf5; color: #065f46; }
.cst-was { margin-left: 4px; }
.cst-show-support { margin-top: -4px; color: #555; }
.cst-set-times ul { list-style: none; padding: 0; margin: 0 0 16px; }
.cst-set-times li { display: flex; gap: 12px; align-items: baseline; padding: 4px 0; border-bottom: 1px solid #eee; }
.cst-set-time { flex: 0 0 11em; font-variant-numeric: tabular-nums; color: #555; white-space: nowrap; }
.cst-ticket-support { font-size: 13px; opacity: .85; }

/* Resale and waitlist (2.7) */
.cst-ticket-type-resale { background: #fbfaf6; }
.cst-badge-resale { background: #e8f1ea; color: #1f5130; }
.cst-waitlist { margin: 18px 0; padding: 16px; border: 1px solid #ddd; border-radius: 10px; }
.cst-waitlist-heading { font-size: 1.1rem; margin: 0 0 6px; }
.cst-waitlist-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 10px 0; }
.cst-waitlist-fields label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
.cst-waitlist-leave { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cst-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cst-resale-box { margin: 10px 18px 16px; padding: 10px 12px; border: 1px dashed #c9c9c9; border-radius: 8px; font-size: .92rem; }
.cst-resale-box .btn { margin-top: 6px; }
.cst-ticket-resold .cst-ticket-qr svg { opacity: .15; }

/* Transfer offers (2.9) */
.cst-transfer-pending { margin-top: 8px; padding: 10px 12px; border: 1px solid #e2c56b; background: #fffbea; border-radius: 8px; font-size: .92rem; }
.cst-transfer-pending .cst-inline { display: flex; gap: 8px; flex-wrap: wrap; }
.cst-transfer-offer { max-width: 560px; margin: 0 0 24px; padding: 18px; border: 1px solid #ddd; border-radius: 12px; }
.cst-transfer-accept label { display: block; margin-bottom: 10px; }

/* Packages (2.9) */
.cst-packages { margin-top: 1.5rem; }
.cst-packages-heading { font-size: 1.1rem; margin: 0 0 .5rem; }
.cst-badge-package { background: #ece8f6; color: #3d2a6e; }
.cst-package-shows { list-style: none; margin: .35rem 0 0; padding: 0; font-size: .92em; }
.cst-package-shows li { padding: .1rem 0; }
.cst-package-shows li.is-this strong { text-decoration: underline; text-underline-offset: 2px; }
.cst-package-when { display: inline-block; min-width: 9.5em; color: #555; font-variant-numeric: tabular-nums; }
.cst-package-of { font-size: .9em; color: #3d2a6e; }

/* Several tickets in one transfer (2.11) */
.cst-transfer-list { margin: .25rem 0 .75rem; padding-left: 1.2rem; }
.cst-transfer-several { margin: 0 0 1rem; padding: .75rem 1rem; border: 1px solid #e5e7eb; border-radius: 10px; background: #fafafa; }
.cst-transfer-several summary { cursor: pointer; font-weight: 600; }
.cst-transfer-several form { display: grid; gap: .5rem; margin-top: .5rem; max-width: 520px; }
.cst-transfer-several fieldset { border: 0; padding: 0; margin: 0; }
.cst-transfer-several legend { font-size: 1rem; font-weight: 600; margin-bottom: .25rem; }
.cst-transfer-several .cst-check { display: block; }
.cst-transfer-accept label { display: block; margin-bottom: .5rem; }

/* Accessibility: links inside text are underlined, not told apart by colour alone. */
.cst .form-text a, .cst .alert a, .cst p a:not(.btn), .cst-show .form-text a { text-decoration: underline; }
.cst-signup a:not(.btn) { color: #1f5f99; text-decoration: underline; }
.cst-from-free { display: block; font-size: .85rem; }
.cst-org-list { list-style: none; padding: 0; display: grid; gap: 8px; } .cst-org-list a { font-weight: 600; }
