/* 1Eid Tickets – front-end styles. Uses the 1Eid theme colours, with fallbacks. */
.oet-box [hidden], .oet-booking [hidden], .oet-scanner [hidden], .oet-tickets-page [hidden], .oet-booking[hidden] { display: none !important; }
.oet-box, .oet-booking, .oet-events, .oet-tickets-page, .oet-scanner {
	--oet-y: var(--wp--preset--color--gold, #FFC20E);
	--oet-ink: var(--wp--preset--color--ink, #141414);
	--oet-dark: var(--wp--preset--color--deep, #222);
	--oet-grey: var(--wp--preset--color--sand, #F2F2F2);
	--oet-mid: var(--wp--preset--color--mid, #6B6B6B);
	--oet-line: #E4E4E4;
}
.oet-box { background: #fff; border: 1px solid #E4E4E4; border-top: 4px solid var(--oet-y); border-radius: 8px; padding: clamp(1rem, 3vw, 1.5rem); }
.oet-box > h2:first-child { margin-top: 0; }
.oet-muted { color: var(--oet-mid, #6B6B6B); font-weight: 400; }
.oet-small { font-size: .875rem; color: var(--oet-mid, #6B6B6B); }
.oet-center { text-align: center; }
.oet-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--oet-mid, #6B6B6B); margin: 0 0 .4rem; }
.oet-notice { background: #FFF6D6; border-left: 4px solid var(--oet-y, #FFC20E); padding: .7rem .9rem; border-radius: 0 6px 6px 0; }
.oet-btn, .oet-btn-sec { display: inline-block; border-radius: 6px; font: inherit; font-weight: 700; font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; cursor: pointer; padding: .8rem 1.4rem; border: 2px solid var(--oet-y, #FFC20E); background: var(--oet-y, #FFC20E); color: var(--oet-ink, #141414); }
.oet-btn:hover { background: #FFD24D; border-color: #FFD24D; color: var(--oet-ink, #141414); }
.oet-btn-sec { background: #fff; border-color: var(--oet-ink, #141414); padding: .55rem 1rem; font-size: .85rem; }
.oet-btn[disabled], .oet-btn-sec[disabled] { opacity: .55; cursor: not-allowed; }
.oet-msg { padding: .8rem 1rem; border-radius: 6px; margin: .75rem 0; }
.oet-msg-err { background: #fdeceb; color: #7a1b14; border-left: 4px solid #c0392b; }
.oet-msg-ok, .oet-msg-info { background: #fff6d6; color: #222; border-left: 4px solid #FFC20E; }
.oet-hp { position: absolute !important; left: -9999px !important; }

/* Hero */
.oet-hero { position: relative; background: #222 center/cover no-repeat; color: #fff; padding: clamp(3rem, 9vw, 6rem) clamp(1rem, 4vw, 2rem) clamp(2rem, 6vw, 4rem); }
.oet-hero::before { content: ""; position: absolute; inset: 0; background: rgba(20,20,20,.7); }
.oet-hero:not(.has-img)::before { background: #222; }
.oet-hero-inner { position: relative; max-width: 1200px; margin: 0 auto; }
.oet-hero h1 { color: #fff; margin: 0 0 .5rem; font-size: clamp(2rem, 6vw, 3.2rem); }
.oet-hero h1::after { content: ""; display: block; width: 64px; height: 4px; background: #FFC20E; margin-top: .8rem; }
.oet-hero .oet-kicker { color: #FFC20E; }
.oet-hero .oet-place, .oet-hero .oet-place a { color: #fff; font-size: 1.1rem; }
.oet-draft-note { display: inline-block; background: #FFC20E; color: #141414; padding: .3rem .6rem; border-radius: 4px; font-size: .85rem; font-weight: 700; }
.oet-event-side { position: relative; }
@media (min-width: 782px) { .oet-event-side .oet-booking { position: sticky; top: 90px; } }
@media (max-width: 781px) { .oet-event-cols { flex-direction: column-reverse; } }

/* Booking */
.oet-booking h2 { margin: 0 0 .75rem; }
.oet-group { border: 0; padding: 0; margin: 0 0 1.25rem; }
.oet-group legend { font-weight: 800; font-size: 1.05rem; color: var(--oet-ink, #141414); padding: 0 0 .4rem; border-bottom: 2px solid var(--oet-y, #FFC20E); width: 100%; margin-bottom: .25rem; }
.oet-row { display: flex; gap: 1rem; justify-content: space-between; align-items: center; padding: .85rem 0; border-bottom: 1px solid #E4E4E4; }
.oet-row-info { flex: 1; min-width: 0; }
.oet-price { font-weight: 600; margin-top: .15rem; }
.oet-desc { font-size: .875rem; color: var(--oet-mid, #6B6B6B); margin-top: .15rem; }
.oet-avail { font-size: .8rem; font-weight: 700; color: #b5651d; margin-top: .2rem; min-height: 0; }
.oet-row[data-state="sold_out"] .oet-avail, .oet-row[data-state="ended"] .oet-avail { color: #a3271c; }
.oet-row[data-state="sold_out"] .oet-row-info, .oet-row[data-state="ended"] .oet-row-info, .oet-row[data-state="soon"] .oet-row-info { opacity: .6; }
.oet-qtys { display: flex; gap: .6rem; flex-shrink: 0; }
.oet-qty label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--oet-mid, #6B6B6B); text-align: center; margin-bottom: .2rem; }
.oet-stepper { display: flex; align-items: center; border: 1px solid #cfcfcf; border-radius: 6px; overflow: hidden; background: #fff; }
.oet-stepper button { width: 2.3rem; height: 2.4rem; border: 0; background: #F2F2F2; font-size: 1.2rem; font-weight: 700; cursor: pointer; color: #141414; }
.oet-stepper button:hover:not([disabled]) { background: #FFC20E; }
.oet-stepper input { width: 2.6rem; height: 2.4rem; border: 0; text-align: center; font: inherit; font-weight: 700; -moz-appearance: textfield; padding: 0; }
.oet-stepper input::-webkit-outer-spin-button, .oet-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
@media (max-width: 480px) {
	.oet-row { flex-direction: column; align-items: stretch; }
	.oet-qtys { justify-content: flex-start; }
}
.oet-summary, .oet-buyer { border-top: 1px solid #E4E4E4; padding-top: 1rem; margin-top: .5rem; }
.oet-summary h3, .oet-buyer h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.oet-lines { list-style: none; margin: 0 0 .75rem; padding: 0; }
.oet-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px dashed #E4E4E4; font-size: .95rem; }
.oet-total, .oet-total-line { display: flex; justify-content: space-between; font-size: 1.25rem; font-weight: 800; color: #141414; margin: .5rem 0 0; }
.oet-total-line { border-bottom: 0 !important; font-size: 1.1rem; }
.oet-inline { display: flex; gap: .5rem; }
.oet-inline input { flex: 1; min-width: 0; }
.oet-discount { margin: .5rem 0 .75rem; }
.oet-discount label, .oet-field label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .3rem; }
.oet-discount-msg { font-size: .85rem; margin-top: .3rem; }
.oet-discount-msg.is-err { color: #a3271c; }
.oet-discount-msg.is-ok { color: #1e7a3c; font-weight: 700; }
.oet-field { margin-bottom: .8rem; }
.oet-box input[type=text], .oet-box input[type=email], .oet-box input[type=tel], .oet-box input[type=search], .oet-box select,
.oet-scanner input[type=text], .oet-scanner input[type=search], .oet-scanner select {
	width: 100%; box-sizing: border-box; padding: .7rem .8rem; border: 1px solid #cfcfcf; border-radius: 6px; font: inherit; background: #fff; color: #141414;
}
.oet-box input:focus, .oet-box select:focus, .oet-scanner input:focus, .oet-scanner select:focus { outline: 2px solid #FFC20E; outline-offset: 1px; border-color: transparent; }
.oet-check { display: flex; gap: .5rem; align-items: flex-start; margin: .6rem 0; font-size: .95rem; }
.oet-check input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; accent-color: #141414; }
.oet-submit { width: 100%; margin-top: .5rem; padding: 1rem; font-size: 1rem; }
.oet-pay-note { font-size: .82rem; color: var(--oet-mid, #6B6B6B); text-align: center; margin: .6rem 0 0; }
.oet-pick { color: var(--oet-mid, #6B6B6B); font-style: italic; }

/* Events list */
.oet-events { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); margin: 1.5rem 0; }
.oet-event-card { background: #fff; border: 1px solid #E4E4E4; border-top: 4px solid #FFC20E; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.oet-card-img img { display: block; width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; }
.oet-card-body { padding: 1.1rem 1.25rem 1.4rem; }
.oet-card-body h2 { font-size: 1.35rem; margin: 0 0 .3rem; }
.oet-card-body h2 a { color: inherit; text-decoration: none; }
.oet-empty { grid-column: 1 / -1; background: #F2F2F2; border-radius: 8px; padding: 1.5rem; }
.oet-past { margin-top: 1.5rem; }

/* Tickets page */
.oet-tickets-page { max-width: 760px; margin: 0 auto; }
.oet-confirm h2 { margin: 0 0 .4rem; }
.oet-ticket-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); margin: 1.25rem 0; }
.oet-ticket { display: flex; gap: 1rem; align-items: center; background: #fff; border: 1px solid #E4E4E4; border-top: 4px solid #FFC20E; border-radius: 8px; padding: .8rem; break-inside: avoid; }
.oet-ticket img { width: 140px; height: 140px; image-rendering: pixelated; flex-shrink: 0; }
.oet-ticket-info { display: flex; flex-direction: column; gap: .15rem; font-size: .92rem; }
.oet-ticket-info strong { font-size: 1.05rem; color: #141414; }
.oet-ticket-info code { font-size: 1rem; letter-spacing: .08em; font-weight: 700; }
.oet-ticket.is-void { opacity: .45; }
.oet-ticket.is-void em { color: #a3271c; font-weight: 700; font-style: normal; }
.oet-waiting { text-align: center; }
.oet-spinner { width: 42px; height: 42px; margin: 1rem auto; border: 4px solid #F2F2F2; border-top-color: #FFC20E; border-radius: 50%; animation: oet-spin 1s linear infinite; }
@keyframes oet-spin { to { transform: rotate(360deg); } }
@media print {
	header, footer, .oet-noprint, .oet-topbar, .wp-block-template-part { display: none !important; }
	.oet-ticket { border: 1px solid #999; }
}

/* Scanner */
.oet-scanner { max-width: 520px; margin: 0 auto; padding: 1rem 0 2rem; }
.oet-camera { position: relative; background: #141414; border-radius: 8px; overflow: hidden; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; margin: .75rem 0; }
.oet-camera video { width: 100%; height: 100%; object-fit: cover; display: none; }
.oet-scanner.is-live .oet-camera video { display: block; }
.oet-scanner.is-live .oet-camera::after { content: ""; position: absolute; inset: 18%; border: 3px solid rgba(255,194,14,.9); border-radius: 12px; pointer-events: none; }
.oet-result { border-radius: 8px; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .2rem; margin-bottom: .75rem; color: #fff; }
.oet-result-title { font-size: 1.6rem; font-weight: 900; letter-spacing: .04em; }
.oet-result.is-ok { background: #1e7a3c; }
.oet-result.is-warn { background: #d98c00; color: #141414; }
.oet-result.is-bad { background: #a3271c; }
.oet-result .oet-muted { color: inherit; opacity: .85; }
.oet-result-ticket { font-weight: 700; }
.oet-scan-stats { font-weight: 800; font-size: 1.05rem; margin: .25rem 0; }
.oet-manual { margin: .75rem 0; }
.oet-search { margin: .75rem 0; }
.oet-search summary { cursor: pointer; font-weight: 700; padding: .5rem 0; }
.oet-search-row { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid #E4E4E4; }
.oet-pill { background: #1e7a3c; color: #fff; border-radius: 999px; padding: .2rem .6rem; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.oet-qr-missing { width: 140px; min-height: 140px; display: flex; align-items: center; justify-content: center; text-align: center; background: #F2F2F2; border-radius: 6px; font-size: .8rem; padding: .5rem; flex-shrink: 0; }

/* Scanner lane banner (set by the volunteer's role) */
.oet-lane { margin: 0 0 .75rem; padding: .5rem .75rem; border-radius: 8px; font-weight: 800; text-align: center; }
.oet-lane-gate { background: #FFC20E; color: #111; }
.oet-lane-parking { background: #2b2f36; color: #fff; }
.oet-lane-both { background: #e9e9e9; color: #111; }
