/* Event tickets: the ticket box on event pages, the tickets page (QR) and "My tickets".
   Logical properties only, so Sorani (dir="rtl") mirrors. */
.kev { color: #0f172a; }
.kev *, .kev *::before, .kev *::after { box-sizing: border-box; }
section.kev { background: #f8fafc; padding: 4rem 0 5rem; border-block-start: 1px solid #e2e8f0; }
.kev-wrap { max-inline-size: 760px; margin: 0 auto; padding: 0 1.5rem; }
.kev-wrap--narrow { max-inline-size: 820px; }
@media (max-width: 640px) { .kev-wrap { padding: 0 1rem; } section.kev { padding: 3rem 0 4rem; } }
.kev-head { text-align: center; margin-block-end: 1.75rem; }
.kev-eyebrow { color: #14B1BB; font-size: .8rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.kev-head h2 { margin: .4rem 0 .6rem; color: #003366; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.kev-head p { color: #64748b; margin: 0; line-height: 1.7; }
.kev-muted { color: #64748b; }
.kev-small { font-size: .86rem; }
.kev-center { text-align: center; }
.kev-sr { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* box */
.kev-box { background: #fff; border: 1px solid #e2e8f0; border-radius: 1.5rem; padding: 1.5rem; box-shadow: 0 10px 40px rgba(0, 51, 102, .06); }
@media (max-width: 640px) { .kev-box { padding: 1.1rem; border-radius: 1.1rem; } }
.kev-types { display: grid; gap: .65rem; }
.kev-type { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .75rem 1rem; align-items: center; border: 1.5px solid #e2e8f0; border-radius: 14px; padding: .85rem 1rem; }
.kev-type.is-off { background: #f8fafc; }
.kev-type.is-off .kev-type__info strong, .kev-type.is-off .kev-type__price { color: #94a3b8; }
.kev-type__info strong { color: #003366; font-size: 1.02rem; }
.kev-type__info p { margin: .2rem 0 0; color: #475569; font-size: .88rem; line-height: 1.55; }
.kev-type__info .kev-state { font-size: .82rem; color: #64748b; }
.kev-type__info .kev-state a { color: #0E7C83; font-weight: 700; }
.kev-type__price { font-weight: 800; color: #0f172a; white-space: nowrap; }
.kev-free { color: #059669; }
.kev-type__qty select { border: 1.5px solid #cbd5e1; border-radius: 10px; padding: .5rem .6rem; font-family: inherit; font-size: 1rem; min-inline-size: 4.25rem; background: #fff; }
.kev-dash { color: #94a3b8; padding-inline: 1.5rem; }
@media (max-width: 520px) {
  .kev-type { grid-template-columns: minmax(0, 1fr) auto; }
  .kev-type__info { grid-column: 1 / -1; }
}
.kev-badge { display: inline-block; border-radius: 999px; padding: .1rem .6rem; font-size: .74rem; font-weight: 800; margin-inline-start: .35rem; vertical-align: middle; }
.kev-badge--member { background: #e0f2fe; color: #075985; }
.kev-badge--out { background: #fee2e2; color: #991b1b; margin-inline-start: 0; }
.kev-badge--few { background: #fef3c7; color: #92400e; margin-inline-start: 0; }
.kev-badge--used { background: #dcfce7; color: #166534; margin-inline-start: 0; }
.kev-total { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-block: 1.1rem .25rem; padding: .85rem 1rem; background: #f1f5f9; border-radius: 12px; font-size: 1.05rem; }
.kev-total strong { color: #003366; font-size: 1.3rem; }
.kev-total small { color: #64748b; font-weight: 500; }
.kev-h3 { font-size: 1.05rem; color: #003366; margin: 1.5rem 0 .75rem; }
.kev-note { color: #64748b; font-size: .84rem; margin: .4rem 0 0; line-height: 1.6; }
.kev-terms { background: #f8fafc; border-radius: 10px; padding: .75rem 1rem; font-size: .88rem; color: #475569; margin-block-start: 1rem; max-block-size: 200px; overflow-y: auto; line-height: 1.65; }
.kev-agree { margin: 1rem 0 0; }
.kev-actions { margin-block-start: 1.25rem; }
.kev-actions .kg-btn + .kg-btn { margin-block-start: .65rem; }
.kev-warn { background: #fef3c7; color: #78350f; border-radius: 10px; padding: .6rem .9rem; }
.kev-closed { text-align: center; color: #64748b; margin: 1.25rem 0 0; }

/* tickets page */
.kev-page { background: #f8fafc; padding: 3rem 0 4.5rem; min-block-size: 60vh; }
.kev-crumbs { font-size: .9rem; margin: 0 0 1rem; }
.kev-crumbs a { color: #0E7C83; font-weight: 700; text-decoration: none; }
.kev-ticket-head h1 { color: #003366; margin: 0 0 .35rem; font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.kev-ticket-head p { margin: 0 0 1.25rem; }
.kev-status { font-weight: 800; }
.kev-status--paid { color: #059669; }
.kev-status--pending_payment { color: #b45309; }
.kev-status--cancelled, .kev-status--refunded { color: #64748b; }
.kev-actions-row { display: flex; align-items: center; gap: .75rem 1rem; flex-wrap: wrap; margin-block-end: 1.25rem; }
.kev-tickets { display: grid; gap: 1rem; }
.kev-ticket { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.25rem; background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 1.25rem 1.4rem; position: relative; overflow: hidden; break-inside: avoid; page-break-inside: avoid; }
.kev-ticket::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; inline-size: 6px; background: linear-gradient(180deg, #003366, #14B1BB); }
.kev-ticket.is-void { opacity: .55; }
.kev-ticket__main h2 { margin: .15rem 0 .35rem; color: #003366; font-size: 1.25rem; line-height: 1.3; }
.kev-ticket__main p { margin: .2rem 0; color: #334155; font-size: .92rem; }
.kev-ticket__eyebrow { color: #14B1BB !important; font-weight: 800; font-size: .78rem !important; text-transform: uppercase; letter-spacing: .04em; }
.kev-ticket__type { font-weight: 800; color: #0f172a !important; }
.kev-ticket__qr { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; }
.kev-qr { inline-size: 150px; block-size: 150px; background: #f8fafc; border-radius: 8px; }
.kev-qr svg { inline-size: 100%; block-size: 100%; display: block; }
.kev-ticket__qr code { font-size: 1.05rem; font-weight: 800; letter-spacing: .08em; color: #0f172a; }
@media (max-width: 560px) {
  .kev-ticket { grid-template-columns: 1fr; }
  .kev-qr { inline-size: 190px; block-size: 190px; }
}
.kev-order { margin-block-start: 2rem; }
.kev-summary { list-style: none; padding: 0; margin: 0 0 .75rem; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.kev-summary li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .9rem; border-block-end: 1px solid #f1f5f9; }
.kev-summary li:last-child { border-block-end: 0; }
.kev-summary__total { background: #f8fafc; font-size: 1.05rem; }

/* member area */
.kev-mine { display: grid; gap: .75rem; }
.kev-mine__row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border: 1px solid #e2e8f0; border-radius: 12px; padding: .9rem 1rem; }
.kev-mine__row.is-past { opacity: .7; }
.kev-mine__row p { margin: .25rem 0 0; }
.kev-mine__side { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }

@media print {
  .no-print, header, footer, .kgnd-header, .kgnd-footer, .site-header, .site-footer, .kg-flashes { display: none !important; }
  .kev-page { background: #fff; padding: 0; }
  .kev-ticket { border: 1.5px solid #94a3b8; box-shadow: none; }
}

/* how-to steps and the e-Transfer guide in the ticket box */
.kev-steps { list-style: decimal; text-align: start; max-inline-size: 560px; margin: .9rem auto 0; padding-inline-start: 1.3rem; color: #475569; line-height: 1.7; font-size: .95rem; }
.kev-steps li + li { margin-block-start: .2rem; }
.kev-or { display: flex; align-items: center; gap: .75rem; color: #94a3b8; font-size: .85rem; margin: 1rem 0; }
.kev-or::before, .kev-or::after { content: ""; flex: 1; border-block-start: 1px solid #e2e8f0; }
.kev-et { border: 1.5px solid #bae6fd; background: #f0f9ff; border-radius: 14px; padding: 1rem 1.1rem 1.1rem; }
.kev-et__title { margin: 0 0 .6rem; color: #003366; font-size: 1.02rem; }
.kev-et__steps { list-style: decimal; margin: 0 0 1rem; padding-inline-start: 1.25rem; display: grid; gap: .7rem; color: #334155; line-height: 1.6; }
.kev-et__amount { color: #003366; font-size: 1.15rem; white-space: nowrap; }
.kev-et__copy { display: inline-flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-inline-start: .25rem; }
.kev-et__copy code { background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; padding: .2rem .55rem; font-size: .95rem; }
.kev-et__ref { margin-block: .4rem .25rem; max-inline-size: 22rem; display: block; }
.kev-et .kev-note { margin-block-start: .5rem; }
