:root {
	--rd-border: #e5e7eb;
	--rd-muted: #6b7280;
	--rd-text: #111827;
	--rd-accent: #2563eb;
	--rd-accent-dark: #1d4ed8;
	--rd-accent-soft: #eff6ff;
	--rd-danger: #b91c1c;
	--rd-success: #047857;
	--rd-surface: #fff;
	--rd-radius: 14px;
	--rd-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .06);
}

.rd-tickets,
.rd-info,
.rd-my-tickets { direction: rtl; text-align: right; margin-block: 1.5em; box-sizing: border-box; }
.rd-tickets *, .rd-info *, .rd-event-page * { box-sizing: border-box; }

/* Buttons */
.rd-btn,
.rd-tickets .rd-tickets__submit { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 46px; padding: .6em 1.6em !important; border: 0 !important; border-radius: 10px !important; background: var(--rd-accent) !important; color: #fff !important; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none !important; cursor: pointer; transition: background .15s, transform .05s; box-shadow: 0 6px 16px rgba(37, 99, 235, .25); }
.rd-btn:hover,
.rd-tickets .rd-tickets__submit:hover { background: var(--rd-accent-dark) !important; }
.rd-btn:active { transform: translateY(1px); }
.rd-tickets .rd-tickets__submit:disabled { background: #cbd5e1 !important; box-shadow: none; cursor: not-allowed; }

/* Ticket selector */
.rd-tickets { background: var(--rd-surface); border: 1px solid var(--rd-border); border-radius: var(--rd-radius); padding: clamp(1em, 3vw, 1.6em); box-shadow: var(--rd-shadow); color: var(--rd-text); scroll-margin-top: 90px; }
.rd-tickets__title { margin: 0 0 1em; font-size: 1.35em; line-height: 1.3; }
.rd-tickets__closed { color: var(--rd-muted); margin: 0; padding: 1em; background: #f9fafb; border-radius: 10px; text-align: center; }
.rd-sessions { border: 0; padding: 0; margin: 0 0 1.4em; display: grid; gap: .6em; min-width: 0; }
.rd-sessions legend { font-weight: 700; margin-bottom: .6em; padding: 0; font-size: 1.02em; }
.rd-session { display: flex; align-items: center; gap: .8em; padding: .85em 1em; border: 1.5px solid var(--rd-border); border-radius: 12px; cursor: pointer; margin: 0; background: #fff; transition: border-color .15s, background .15s; }
.rd-session:hover { border-color: #93c5fd; }
.rd-session:has(input:checked) { border-color: var(--rd-accent); background: var(--rd-accent-soft); }
.rd-session.is-full { opacity: .55; cursor: not-allowed; }
.rd-session__date { flex: 1; font-weight: 600; line-height: 1.6; }
.rd-session__left { font-size: .82em; color: var(--rd-danger); font-weight: 600; white-space: nowrap; }

/* Our own radio, so theme styles cannot misplace the dot. */
.rd-session input[type="radio"] { -webkit-appearance: none !important; appearance: none !important; flex: 0 0 auto; width: 20px !important; height: 20px !important; min-width: 0; margin: 0 !important; padding: 0 !important; border: 2px solid #cbd5e1 !important; border-radius: 50% !important; background: #fff !important; display: inline-grid !important; place-content: center; position: static !important; box-shadow: none !important; cursor: pointer; vertical-align: middle; }
.rd-session input[type="radio"]::before { content: "" !important; display: block !important; width: 10px; height: 10px; border-radius: 50%; background: var(--rd-accent); transform: scale(0); transition: transform .12s; position: static !important; margin: 0 !important; }
.rd-session input[type="radio"]::after { display: none !important; content: none !important; }
.rd-session input[type="radio"]:checked { border-color: var(--rd-accent) !important; }
.rd-session input[type="radio"]:checked::before { transform: scale(1); }
.rd-session input[type="radio"]:focus-visible { outline: 2px solid var(--rd-accent); outline-offset: 2px; }

.rd-types { display: grid; gap: .6em; }
.rd-type { display: grid; grid-template-columns: 1fr auto auto; gap: 1em; align-items: center; padding: .9em 1em; border: 1px solid var(--rd-border); border-radius: 12px; background: #fff; }
.rd-type.is-disabled { background: #f9fafb; }
.rd-type.is-disabled .rd-type__name, .rd-type.is-disabled .rd-type__price { opacity: .65; }
.rd-type__name { font-size: 1.02em; }
.rd-type__desc { display: block; font-size: .85em; color: var(--rd-muted); margin-top: .2em; }
.rd-type__price { font-weight: 700; white-space: nowrap; text-align: left; }
.rd-type__price del { color: var(--rd-muted); font-weight: 400; font-size: .85em; margin-inline-end: .3em; }
.rd-type__stage, .rd-type__groups { display: block; font-size: .78em; font-weight: 500; color: var(--rd-success); }
.rd-type__qty select { min-width: 4.5em; min-height: 40px; border-radius: 8px; border: 1px solid #d1d5db; padding: 0 .6em; background-color: #fff; }
.rd-type__soon { font-size: .85em; color: var(--rd-muted); }
.rd-type__timer { display: inline-block; font-weight: 700; color: var(--rd-accent); font-variant-numeric: tabular-nums; }
.rd-tickets__footer { display: flex; align-items: center; justify-content: space-between; gap: 1em; margin-top: 1.2em; padding-top: 1.2em; border-top: 1px dashed var(--rd-border); flex-wrap: wrap; }
.rd-total { font-weight: 700; font-size: 1.1em; }
.rd-tickets__submit.is-busy { opacity: .7; }

/* Countdown to the start of sales */
.rd-countdown { text-align: center; padding: 1.4em 1em; border-radius: 12px; background: linear-gradient(135deg, #eff6ff, #f5f3ff); }
.rd-countdown__title { margin: 0 0 .8em; font-weight: 700; font-size: 1.1em; }
.rd-countdown__clock { display: flex; justify-content: center; gap: .6em; flex-wrap: wrap; flex-direction: row-reverse; }
.rd-countdown__clock span { display: flex; flex-direction: column; align-items: center; min-width: 4.2em; padding: .6em .4em; background: #fff; border-radius: 10px; box-shadow: var(--rd-shadow); }
.rd-countdown__clock b { font-size: 1.8em; line-height: 1.1; color: var(--rd-accent); font-variant-numeric: tabular-nums; }
.rd-countdown__clock small { font-size: .78em; color: var(--rd-muted); margin-top: .2em; }
.rd-countdown__date { margin: .9em 0 0; color: var(--rd-muted); font-size: .9em; }

@media (max-width: 520px) {
	.rd-type { grid-template-columns: 1fr auto; }
	.rd-type__qty { grid-column: 1 / -1; }
	.rd-type__qty select { width: 100%; }
	.rd-tickets .rd-tickets__submit { width: 100%; }
}

/* Event info card */
.rd-info { background: var(--rd-surface); border: 1px solid var(--rd-border); border-radius: var(--rd-radius); padding: 1.2em 1.3em; box-shadow: var(--rd-shadow); color: var(--rd-text); }
.rd-info__title { margin: 0 0 .4em; font-size: 1.1em; }
.rd-info__list { margin: 0; display: grid; gap: 0; }
.rd-info__list > div { display: grid; grid-template-columns: 7em 1fr; gap: .5em; padding: .7em 0; border-bottom: 1px solid #f3f4f6; }
.rd-info__list > div:last-child { border-bottom: 0; }
.rd-info__list dt { color: var(--rd-muted); font-size: .9em; }
.rd-info__list dd { margin: 0; font-weight: 600; line-height: 1.7; }
.rd-info__list dd small { font-weight: 400; color: var(--rd-muted); }
.rd-info__sessions { margin: 0; padding: 0; list-style: none; display: grid; gap: .3em; }
.rd-info__sub { display: block; font-weight: 400; font-size: .85em; color: var(--rd-muted); }
.rd-info__heading { font-size: 1em; margin: 1.2em 0 .6em; padding-top: 1em; border-top: 1px solid var(--rd-border); }
.rd-people { margin: 0; padding: 0; list-style: none; display: grid; gap: .6em; }
.rd-people--inline { display: flex; flex-wrap: wrap; gap: .5em; }
.rd-people--inline .rd-person { padding: .3em .8em; background: #f3f4f6; border-radius: 999px; font-size: .9em; }
.rd-person span { display: block; font-size: .85em; color: var(--rd-muted); }
.rd-status { display: inline-block; padding: .2em .8em; border-radius: 999px; font-size: .82em; font-weight: 600; background: #f3f4f6; color: #374151; }
.rd-status--on_sale { background: #d1fae5; color: #065f46; }
.rd-status--presale { background: #e0e7ff; color: #3730a3; }
.rd-status--sold_out,
.rd-status--cancelled { background: #fee2e2; color: #991b1b; }

/* Full-width event page (templates/single-event.php) */
.rd-event-page { direction: rtl; text-align: right; color: var(--rd-text); padding-bottom: 3em; }
.rd-hero { max-width: 1180px; margin: 0 auto; padding: 24px 16px 0; }
.rd-hero__cover { position: relative; border-radius: 20px; overflow: hidden; background: #e5e7eb; aspect-ratio: 21 / 8; max-height: 460px; }
.rd-hero__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rd-hero__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .25), transparent 45%); }
.rd-hero__card { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: stretch; background: var(--rd-surface); border: 1px solid var(--rd-border); border-radius: 18px; box-shadow: 0 12px 40px rgba(16, 24, 40, .1); padding: clamp(18px, 3vw, 28px); }
.rd-hero.has-image .rd-hero__card { margin: -72px clamp(12px, 3vw, 32px) 0; }
.rd-hero__title { margin: .35em 0 .25em; font-size: clamp(1.5em, 3.4vw, 2.2em); line-height: 1.35; color: var(--rd-text); }
.rd-hero__excerpt { margin: 0 0 1em; color: var(--rd-muted); line-height: 1.9; }
.rd-hero__facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1em; }
.rd-hero__facts > .rd-fact { flex: 1 1 200px; }
.rd-hero__facts > .rd-fact--wide { flex-basis: 100%; }
.rd-fact { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 12px; background: #f8fafc; border: 1px solid #eef2f7; min-width: 0; }
.rd-fact > div { flex: 1 1 auto; min-width: 0; }
.rd-fact strong { display: block; overflow-wrap: anywhere; }
.rd-fact__icon { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; background: var(--rd-accent-soft); display: grid; place-items: center; }
.rd-fact__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--rd-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rd-fact__label { display: block; font-size: .8em; color: var(--rd-muted); margin-bottom: .15em; }
.rd-fact strong { font-weight: 600; line-height: 1.6; }
.rd-fact__list { list-style: none; margin: .2em 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rd-fact__list li { padding: .3em .8em; border-radius: 8px; line-height: 1.7; background: #fff; border: 1px solid var(--rd-border); font-size: .9em; font-weight: 600; }
.rd-hero__cta { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 20px; border-radius: 14px; background: linear-gradient(160deg, var(--rd-accent-soft), #f5f3ff); border: 1px solid #e0e7ff; text-align: center; }
.rd-hero__price-label { font-size: .85em; color: var(--rd-muted); }
.rd-hero__price { display: block; font-size: 1.5em; font-weight: 800; color: var(--rd-text); margin-bottom: 10px; }
.rd-hero__closed { display: block; padding: .8em; border-radius: 10px; background: #fff; color: var(--rd-muted); font-weight: 600; }
.rd-btn--hero { width: 100%; min-height: 50px; font-size: 1.05rem; }
.rd-btn--hero svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.rd-event-body { max-width: 1180px; margin: 0 auto; padding: 2em 16px 0; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2em; align-items: start; }
.rd-event-main > .rd-tickets { margin-top: 0; }
.rd-event-side { position: sticky; top: 24px; }
.rd-event-side .rd-info { margin-top: 0; }
.rd-event-about { margin-top: 2em; background: var(--rd-surface); border: 1px solid var(--rd-border); border-radius: var(--rd-radius); padding: clamp(1em, 3vw, 1.6em); }
.rd-event-about h2 { margin: 0 0 .8em; font-size: 1.25em; }
.rd-event-content { line-height: 2; }
.rd-event-content img { max-width: 100%; height: auto; border-radius: 10px; }

@media (max-width: 900px) {
	.rd-event-body { grid-template-columns: minmax(0, 1fr); gap: 1.2em; padding-top: 1.2em; }
	.rd-event-side { position: static; }
}
.rd-hero__backdrop { display: none; }

/* Layout: poster — portrait poster beside the details */
.rd-layout--poster .rd-hero { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.rd-layout--poster .rd-hero__cover { aspect-ratio: 3 / 4; max-height: none; box-shadow: 0 16px 40px rgba(16, 24, 40, .18); }
.rd-layout--poster .rd-hero__cover::after { display: none; }
.rd-layout--poster .rd-hero.has-image .rd-hero__card { margin: 0; }

/* Layout: dark — blurred image backdrop, white text */
.rd-layout--dark .rd-hero { position: relative; max-width: none; overflow: hidden; display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 32px; align-items: center; padding: clamp(28px, 5vw, 56px) max(16px, calc((100% - 1180px) / 2 + 16px)); background: #0f172a; color: #f1f5f9; }
.rd-layout--dark .rd-hero:not(.has-image) { grid-template-columns: minmax(0, 1fr); }
.rd-layout--dark .rd-hero__backdrop { display: block; position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(30px) saturate(1.2); opacity: .5; }
.rd-layout--dark .rd-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 23, 42, .92), rgba(15, 23, 42, .45)); }
.rd-layout--dark .rd-hero > :not(.rd-hero__backdrop) { position: relative; z-index: 1; }
.rd-layout--dark .rd-hero__cover { aspect-ratio: 4 / 3; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.rd-layout--dark .rd-hero__cover::after { display: none; }
.rd-layout--dark .rd-hero.has-image .rd-hero__card { margin: 0; }
.rd-layout--dark .rd-hero__card { background: transparent; border: 0; box-shadow: none; padding: 0; }
.rd-layout--dark .rd-hero__title { color: #fff; }
.rd-layout--dark .rd-hero__excerpt, .rd-layout--dark .rd-fact__label { color: #cbd5e1; }
.rd-layout--dark .rd-fact { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .14); }
.rd-layout--dark .rd-fact strong { color: #fff; }
.rd-layout--dark .rd-fact__icon { background: rgba(147, 197, 253, .15); }
.rd-layout--dark .rd-fact__icon svg { stroke: #93c5fd; }
.rd-layout--dark .rd-fact__list li { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: #fff; }
.rd-layout--dark .rd-hero__cta { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); }
.rd-layout--dark .rd-hero__price, .rd-layout--dark .rd-hero__price .woocommerce-Price-amount, .rd-layout--dark .rd-hero__price bdi { color: #fff; }
.rd-layout--dark .rd-hero__price-label { color: #cbd5e1; }
.rd-layout--dark .rd-hero__card { grid-template-columns: minmax(0, 1fr); }
.rd-layout--dark .rd-hero__cta { max-width: 340px; }

/* Layout: minimal — no big image, straight to the details */
.rd-layout--minimal .rd-hero__cover { display: none; }
.rd-layout--minimal .rd-hero { padding-top: 32px; }
.rd-layout--minimal .rd-hero.has-image .rd-hero__card { margin: 0; }
.rd-layout--minimal .rd-hero__card { box-shadow: none; }

@media (max-width: 820px) {
	.rd-hero__card { grid-template-columns: minmax(0, 1fr); }
	.rd-layout--poster .rd-hero, .rd-layout--dark .rd-hero { grid-template-columns: minmax(0, 1fr); }
	.rd-layout--poster .rd-hero__cover { width: min(72%, 280px); margin: 0 auto; }
	.rd-layout--dark .rd-hero__cta { max-width: none; }
}
@media (max-width: 640px) {
	.rd-hero { padding: 12px 12px 0; }
	.rd-hero__cover { aspect-ratio: 16 / 10; border-radius: 16px; }
	.rd-hero.has-image .rd-hero__card { margin: -40px 8px 0; }
}

/* My tickets */
.rd-my-tickets { display: grid; gap: 16px; }
.rd-my-tickets * { box-sizing: border-box; }
.rd-ticket { border: 1px solid var(--rd-border); border-radius: var(--rd-radius); background: #fff; box-shadow: var(--rd-shadow); overflow: hidden; color: var(--rd-text); }
.rd-ticket.is-void, .rd-ticket.is-past { opacity: .7; }
.rd-ticket__head { display: flex; justify-content: space-between; align-items: center; gap: 1em; flex-wrap: wrap; padding: 14px 18px; background: #f8fafc; border-bottom: 1px dashed var(--rd-border); }
.rd-ticket__event { font-weight: 700; font-size: 1.05em; color: var(--rd-text) !important; text-decoration: none !important; }
.rd-ticket__status { font-size: .82em; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: #d1fae5; color: #065f46; }
.rd-ticket.is-void .rd-ticket__status { background: #fee2e2; color: #991b1b; }
.rd-ticket__body { display: flex; gap: 20px; align-items: center; padding: 16px 18px; flex-wrap: wrap; }
.rd-ticket__qr { flex: 0 0 auto; padding: 8px; border: 1px solid var(--rd-border); border-radius: 12px; background: #fff; }
.rd-ticket__qr svg { display: block; width: 132px; height: 132px; }
.rd-my-tickets .rd-ticket__meta { flex: 1 1 260px; list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; gap: 8px; }
.rd-my-tickets .rd-ticket__meta li { margin: 0 !important; padding: 0 !important; display: flex; gap: 8px; line-height: 1.7; }
.rd-my-tickets .rd-ticket__meta li::before, .rd-my-tickets .rd-ticket__meta li::marker { content: none !important; }
.rd-ticket__meta span { color: var(--rd-muted); flex: 0 0 6.5em; }
.rd-ticket__meta code { padding: 1px 8px; border-radius: 6px; background: #f3f4f6; font-size: .92em; letter-spacing: .05em; }
.rd-ticket__actions { display: flex; gap: 10px; flex-wrap: wrap; padding: 0 18px 16px; }
.rd-ticket__actions:empty { display: none; }
.rd-ticket__pdf svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rd-my-tickets .rd-btn { min-height: 44px; font-size: .95rem; box-shadow: none; }
.rd-my-tickets .rd-btn--danger { background: var(--rd-danger) !important; }
/* Edit / transfer / cancel as an accordion */
.rd-ticket__form { margin: 0; border-top: 1px solid var(--rd-border); }
.rd-ticket__form summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; color: var(--rd-accent); font-weight: 600; }
.rd-ticket__form summary::-webkit-details-marker { display: none; }
.rd-ticket__form summary::after { content: ""; width: 8px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.rd-ticket__form[open] summary::after { transform: rotate(135deg); }
.rd-ticket__form summary:hover { background: #f8fafc; }
.rd-ticket__form form { padding: 4px 18px 16px; }
.rd-ticket__form p { margin: 0 0 12px; }
.rd-ticket__form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .92em; }
.rd-my-tickets .rd-ticket__form input, .rd-my-tickets .rd-ticket__form textarea { width: 100%; max-width: 28em; min-height: 44px; padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 10px; background: #fff; font: inherit; font-weight: 400; }
.rd-my-tickets .rd-select { max-width: 28em; }
.rd-my-tickets .rd-select__button { all: unset; box-sizing: border-box; display: block; width: 100%; min-height: 44px; padding: 10px 12px 10px 34px; border: 1px solid #d1d5db; border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%236b7280' stroke-width='2'/%3E%3C/svg%3E") no-repeat left 12px center / 14px; font: inherit; font-weight: 400; cursor: pointer; }
.rd-my-tickets .rd-select__list { display: none; position: absolute; z-index: 50; top: calc(100% + 4px); right: 0; left: 0; margin: 0 !important; padding: 4px !important; list-style: none !important; background: #fff; border: 1px solid var(--rd-border); border-radius: 12px; box-shadow: 0 12px 32px rgba(16, 24, 40, .14); }
.rd-my-tickets .rd-select.is-open .rd-select__list { display: block; }
.rd-my-tickets .rd-select__list li { margin: 0 !important; padding: 9px 12px !important; border-radius: 8px; cursor: pointer; font-weight: 400; }
.rd-my-tickets .rd-select__list li::before, .rd-my-tickets .rd-select__list li::marker { content: none !important; }
.rd-my-tickets .rd-select__list li:hover, .rd-my-tickets .rd-select__list li:focus { background: var(--rd-accent-soft); }
.rd-my-tickets .rd-select__list li.is-selected { background: var(--rd-accent); color: #fff; }
.rd-quote { padding: 10px 12px; border-radius: 10px; background: #f8fafc; line-height: 2; }
.rd-ticket__refund, .rd-ticket__note { font-size: .9em; color: var(--rd-muted); margin: 0; padding: 10px 18px; border-top: 1px solid var(--rd-border); }

/* Checkout attendee fields */
.rd-attendees { margin-top: 1.5em; }
.rd-attendee { border: 1px solid var(--rd-border); border-radius: 8px; padding: .8em 1em; margin-bottom: 1em; }
.rd-attendee legend { padding: 0 .4em; font-weight: 600; }
.rd-attendees__hint { color: var(--rd-muted); font-size: .9em; }

/* Seat picker */
.rd-seat-picker { margin: 0 0 1em; }
.rd-seat-picker__title { font-size: 1em; margin: 0 0 .5em; }
.rd-tickets .rd-seat-picker__chosen { list-style: none !important; margin: .8em 0 0 !important; padding: 0 !important; display: grid; gap: 6px; }
.rd-tickets .rd-seat-picker__chosen li { list-style: none !important; margin: 0 !important; }
.rd-tickets .rd-seat-picker__chosen li::before, .rd-tickets .rd-seat-picker__chosen li::marker { content: none !important; }
.rd-chosen__head { font-weight: 700; font-size: .92em; padding: 0 2px !important; }
.rd-chosen__item { display: flex; align-items: center; gap: .7em; padding: .55em .8em !important; background: var(--rd-accent-soft); border: 1px solid #dbeafe; border-radius: 10px; line-height: 1.5; }
.rd-chosen__dot { flex: 0 0 12px; width: 12px; height: 12px; border-radius: 50%; }
.rd-chosen__label { flex: 1; min-width: 0; font-weight: 600; font-size: .95em; }
.rd-chosen__label small { display: block; font-weight: 400; font-size: .85em; color: var(--rd-muted); }
.rd-chosen__price { white-space: nowrap; font-weight: 700; font-size: .95em; }
.rd-tickets .rd-seat-remove { flex: 0 0 28px; display: grid; place-items: center; width: 28px !important; height: 28px !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: #fff !important; color: var(--rd-danger) !important; box-shadow: none !important; font-size: 18px !important; line-height: 1 !important; cursor: pointer; }
.rd-tickets .rd-seat-remove:hover { background: #fee2e2 !important; }
.rd-muted { color: var(--rd-muted); }


.rd-waitlist { margin-top: 1.2em; border: 1px solid var(--rd-border); border-radius: 12px; background: #fafafa; }
.rd-waitlist summary { cursor: pointer; font-weight: 700; color: var(--rd-accent); padding: .8em 1em; list-style: none; }
.rd-waitlist summary::-webkit-details-marker { display: none; }
.rd-waitlist summary::before { content: "+"; display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; margin-inline-end: .4em; border-radius: 50%; background: var(--rd-accent-soft); }
.rd-waitlist[open] summary::before { content: "−"; }
.rd-waitlist__body { padding: 0 1em 1em; }
.rd-waitlist__body .rd-muted { margin: 0 0 .9em; font-size: .9em; line-height: 1.8; }
.rd-waitlist__form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; }
.rd-waitlist__form label { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: .9em; font-weight: 600; }
.rd-tickets .rd-waitlist__form input, .rd-tickets .rd-waitlist__form select { width: 100%; min-height: 44px; padding: 6px 10px; border: 1px solid #d1d5db; border-radius: 10px; background: #fff; font: inherit; font-weight: 400; box-sizing: border-box; }
.rd-tickets .rd-waitlist__submit { grid-column: 1 / -1; justify-self: start; min-width: 220px; min-height: 44px; }
@media (max-width: 520px) { .rd-tickets .rd-waitlist__submit { width: 100%; } }

/* Totals with discounts */
.rd-total { display: flex; flex-direction: column; gap: 4px; }
.rd-total__line { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5em; }
.rd-total__old { color: var(--rd-muted); font-weight: 400; font-size: .85em; }
.rd-total__sum { font-size: 1.1em; }
.rd-total__save { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: .82em; font-weight: 500; color: var(--rd-success); }
.rd-total__save-all { font-weight: 700; }

/* Offers in the event page price box */
.rd-hero__old-price { display: block; color: var(--rd-muted); font-size: .95em; margin-bottom: -4px; }
.rd-offers { list-style: none !important; margin: 4px 0 6px !important; padding: 0 !important; display: grid; gap: 6px; text-align: right; }
.rd-offer { display: flex; align-items: center; gap: 8px; margin: 0 !important; padding: 6px 8px !important; border-radius: 10px; background: #fff; border: 1px dashed #c7d2fe; font-size: .88em; line-height: 1.6; color: var(--rd-text); }
.rd-offer::before, .rd-offer::marker { content: none !important; }
.rd-offer__badge { flex: 0 0 auto; min-width: 2.6em; padding: 1px 6px; border-radius: 999px; background: #dc2626; color: #fff; font-weight: 800; font-size: .9em; text-align: center; }
.rd-offer--group .rd-offer__badge { background: #059669; }
.rd-layout--dark .rd-offer { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .25); color: #f1f5f9; }
.rd-layout--dark .rd-hero__old-price { color: #94a3b8; }

/* Attendee details step (/rooydad-details/) */
.rd-step { max-width: 860px; margin: 0 auto; padding: 24px 16px 48px; direction: rtl; text-align: right; color: var(--rd-text); box-sizing: border-box; }
.rd-step * { box-sizing: border-box; }
.rd-step__progress { list-style: none !important; margin: 0 0 20px !important; padding: 0 !important; display: flex; gap: 8px; counter-reset: none; }
.rd-step__progress li { flex: 1; display: flex; align-items: center; gap: 8px; margin: 0 !important; padding: 10px 12px !important; border-radius: 12px; background: #f3f4f6; color: var(--rd-muted); font-size: .9em; font-weight: 600; }
.rd-step__progress li::before, .rd-step__progress li::marker { content: none !important; }
.rd-step__progress li span { display: grid; place-items: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid #d1d5db; font-size: .9em; }
.rd-step__progress li.is-done { background: #ecfdf5; color: var(--rd-success); }
.rd-step__progress li.is-done span { border-color: var(--rd-success); }
.rd-step__progress li.is-current { background: var(--rd-accent-soft); color: var(--rd-accent); }
.rd-step__progress li.is-current span { border-color: var(--rd-accent); background: var(--rd-accent); color: #fff; }
.rd-step__head h1 { margin: 0 0 8px; font-size: 1.5em; }
.rd-step__timer { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: .92em; }
.rd-step__timer strong { color: #b45309; font-variant-numeric: tabular-nums; }
.rd-step__alert { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: #fef2f2; border: 1px solid #fecaca; color: var(--rd-danger); font-weight: 600; }
.rd-step__group { margin-top: 18px; }
.rd-step__group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 10px; }
.rd-step__group-head strong { font-size: 1.1em; }
.rd-step__group-head span { color: var(--rd-muted); font-size: .9em; }
.rd-ticket-card { margin: 0 0 12px !important; padding: 16px !important; border: 1px solid var(--rd-border) !important; border-radius: 14px; background: #fff; box-shadow: var(--rd-shadow); min-width: 0; }
.rd-ticket-card legend { float: right; width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; padding: 0; }
.rd-ticket-card legend + * { clear: both; }
.rd-ticket-card__num { padding: 2px 12px; border-radius: 999px; background: var(--rd-accent); color: #fff; font-weight: 700; font-size: .9em; }
.rd-ticket-card__type { color: var(--rd-muted); font-size: .92em; font-weight: 600; }
.rd-ticket-card__tools { display: flex; gap: 14px; margin-bottom: 10px; }
.rd-step .rd-link-btn { all: unset; cursor: pointer; color: var(--rd-accent); font-size: .88em; font-weight: 600; border-bottom: 1px dashed currentColor; }
.rd-ticket-card__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.rd-step__field { display: flex; flex-direction: column; gap: 4px; font-size: .9em; font-weight: 600; margin: 0; }
.rd-step__field abbr { color: var(--rd-danger); text-decoration: none; }
.rd-step .rd-step__field input, .rd-step .rd-ticket-card__custom input[type="text"], .rd-step .rd-ticket-card__custom input[type="email"], .rd-step .rd-ticket-card__custom input[type="tel"], .rd-step .rd-ticket-card__custom input[type="number"], .rd-step .rd-ticket-card__custom select, .rd-step .rd-ticket-card__custom textarea { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 10px; background: #fff; font: inherit; font-weight: 400; }
.rd-step .rd-step__field input:focus { outline: 2px solid #bfdbfe; border-color: var(--rd-accent); }
.rd-ticket-card__custom { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--rd-border); }
.rd-ticket-card__custom .rd-field { margin: 0 0 10px; }
.rd-step__error { color: var(--rd-danger); font-size: .85em; font-weight: 600; }
.rd-step__note { color: var(--rd-muted); font-size: .88em; }
.rd-step__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.rd-step__submit { min-width: 220px; }
@media (max-width: 520px) {
	.rd-step__progress li { flex-direction: column; text-align: center; font-size: .75em; padding: 8px 4px !important; }
	.rd-step__submit { width: 100%; }
	.rd-step__actions { flex-direction: column-reverse; }
}
.rd-step-summary { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; padding: 10px 14px; border-radius: 10px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; direction: rtl; }

/* Secondary (outline) button */
.rd-btn-outline { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .6em 1.4em; border: 1.5px solid #d1d5db; border-radius: 10px; background: #fff; color: var(--rd-text) !important; font-weight: 600; text-decoration: none !important; transition: border-color .15s, background .15s; }
.rd-btn-outline:hover { border-color: var(--rd-accent); background: var(--rd-accent-soft); }

.rd-wl-msg { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; font-size: .92em; line-height: 1.8; }
.rd-wl-msg--ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.rd-wl-msg--err { background: #fef2f2; border: 1px solid #fecaca; color: var(--rd-danger); font-weight: 600; }
.rd-tickets__notices:empty { display: none; }
.rd-tickets__notices .woocommerce-error, .rd-tickets__notices .woocommerce-message, .rd-tickets__notices .woocommerce-info { margin: 0 0 12px !important; border-radius: 10px; }
#rd-waitlist { scroll-margin-top: 90px; }

/* Styled dropdown (select[data-rd-enhance]) */
.rd-select { position: relative; width: 100%; min-width: 4.5em; }
.rd-select__native { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; opacity: 0 !important; pointer-events: none !important; }
.rd-tickets .rd-select__button { all: unset; box-sizing: border-box; display: block; width: 100%; min-height: 44px; padding: 10px 12px 10px 34px; border: 1px solid #d1d5db; border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%236b7280' stroke-width='2'/%3E%3C/svg%3E") no-repeat left 12px center / 14px; color: var(--rd-text); font: inherit; line-height: 1.5; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.rd-tickets .rd-select__button:focus-visible { outline: 2px solid #bfdbfe; border-color: var(--rd-accent); }
.rd-select.is-open .rd-select__button { border-color: var(--rd-accent); }
.rd-tickets .rd-select__list { display: none; position: absolute; z-index: 50; top: calc(100% + 4px); right: 0; left: 0; margin: 0 !important; padding: 4px !important; list-style: none !important; max-height: 260px; overflow-y: auto; background: #fff; border: 1px solid var(--rd-border); border-radius: 12px; box-shadow: 0 12px 32px rgba(16, 24, 40, .14); }
.rd-select.is-open .rd-select__list { display: block; }
.rd-tickets .rd-select__list li { margin: 0 !important; padding: 9px 12px !important; border-radius: 8px; line-height: 1.6; cursor: pointer; outline: none; }
.rd-tickets .rd-select__list li::before, .rd-tickets .rd-select__list li::marker { content: none !important; }
.rd-tickets .rd-select__list li:hover, .rd-tickets .rd-select__list li:focus { background: var(--rd-accent-soft); }
.rd-tickets .rd-select__list li.is-selected { background: var(--rd-accent); color: #fff; }
.rd-type__qty .rd-select { min-width: 5.5em; }
.rd-tickets .rd-waitlist__form { grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 640px) {
	.rd-tickets .rd-waitlist__form { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: "session session type qty" "name name mobile mobile" "submit submit . ."; }
	.rd-wl-f--session { grid-area: session; }
	.rd-wl-f--type { grid-area: type; }
	.rd-wl-f--qty { grid-area: qty; }
	.rd-wl-f--name { grid-area: name; }
	.rd-wl-f--mobile { grid-area: mobile; }
	.rd-tickets .rd-waitlist__submit { grid-area: submit; width: 100%; min-width: 0; justify-self: stretch; }
}
.rd-tickets .rd-waitlist__form .rd-wl-f { align-self: start; margin: 0 !important; padding: 0 !important; }
.rd-tickets .rd-waitlist__form .rd-select, .rd-tickets .rd-waitlist__form input { margin: 0 !important; }
.rd-wl-live:empty { display: none; }
.rd-waitlist__submit.is-busy { opacity: .7; }
