/**
 * Culture Media — Account module
 * My Account (dashboard, tickets, favorites), digital ticket, ticket check,
 * order summary. Mobile-first, LTR by default (English frontend) but written
 * with logical properties only, so an RTL locale works without changes.
 * Tokens with fallbacks. No letter-spacing on Arabic-script text; no `ch` widths.
 */

[hidden] { display: none !important; }

.cm-account-dash,
.cm-account-tickets,
.cm-account-favs,
.cm-ticket,
.cm-ticket-state,
.cm-check,
.cm-summary {
	--acc-ink: var(--color-ink, #0B0D10);
	--acc-ink-2: var(--color-ink-2, #14181E);
	--acc-paper: var(--color-paper, #F7F3EC);
	--acc-white: var(--color-white, #FFFFFF);
	--acc-text: var(--color-text, #17191C);
	--acc-muted: var(--color-muted, #6F747C);
	--acc-line: var(--color-line, #E5E0D8);
	--acc-accent: var(--color-accent, #FF365F);
	--acc-accent-hover: var(--color-accent-hover, #E92850);
	--acc-gold: var(--color-gold, #D6B45C);
	--acc-success: var(--color-success, #23A866);
	--acc-danger: var(--color-danger, #E64242);
	--acc-warning: #C98A12;
	--acc-radius: var(--radius, 14px);
	--acc-radius-lg: var(--radius-lg, 22px);
	--acc-pill: var(--radius-pill, 999px);
	--acc-ease: var(--ease, cubic-bezier(.2, .7, .2, 1));
	--acc-dur: var(--dur, 220ms);
	box-sizing: border-box;
	font-family: var(--font-sans, "IRANSansX", "IRANSans", "Vazirmatn", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif);
	line-height: 1.65;
	color: var(--acc-text);
}

.cm-account-dash *,
.cm-account-tickets *,
.cm-account-favs *,
.cm-ticket *,
.cm-ticket-state *,
.cm-check *,
.cm-summary * { box-sizing: border-box; }

/* ------------------------------------------------------------------ */
/* Fallback primitives (low specificity: theme/components CSS wins)     */
/* ------------------------------------------------------------------ */

:where(.cm-account-dash, .cm-account-tickets, .cm-account-favs, .cm-ticket, .cm-ticket-state, .cm-check, .cm-summary) .cm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 20px;
	border: 1px solid transparent;
	border-radius: var(--acc-radius);
	font: inherit;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--acc-dur) var(--acc-ease), color var(--acc-dur) var(--acc-ease), border-color var(--acc-dur) var(--acc-ease), transform var(--acc-dur) var(--acc-ease);
}
:where(.cm-account-dash, .cm-account-tickets, .cm-account-favs, .cm-ticket, .cm-ticket-state, .cm-check, .cm-summary) .cm-btn:hover { transform: translateY(-1px); }
:where(.cm-account-dash, .cm-account-tickets, .cm-account-favs, .cm-ticket, .cm-ticket-state, .cm-check, .cm-summary) .cm-btn:focus-visible { outline: 2px solid var(--acc-accent); outline-offset: 2px; }
:where(.cm-account-dash, .cm-account-tickets, .cm-account-favs, .cm-ticket, .cm-ticket-state, .cm-check, .cm-summary) .cm-btn--primary { background: var(--acc-accent); color: #fff; }
:where(.cm-account-dash, .cm-account-tickets, .cm-account-favs, .cm-ticket, .cm-ticket-state, .cm-check, .cm-summary) .cm-btn--primary:hover { background: var(--acc-accent-hover); color: #fff; }
:where(.cm-account-dash, .cm-account-tickets, .cm-account-favs, .cm-ticket, .cm-ticket-state, .cm-check, .cm-summary) .cm-btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
:where(.cm-account-dash, .cm-account-tickets, .cm-account-favs, .cm-ticket, .cm-ticket-state, .cm-check, .cm-summary) .cm-btn--dark { background: var(--acc-ink); color: #fff; }
:where(.cm-account-dash, .cm-account-tickets, .cm-account-favs, .cm-ticket, .cm-ticket-state, .cm-check, .cm-summary) .cm-btn--sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
:where(.cm-account-dash, .cm-account-tickets, .cm-account-favs, .cm-ticket, .cm-ticket-state, .cm-check, .cm-summary) .cm-btn--lg { min-height: 52px; font-size: 17px; }
:where(.cm-account-dash, .cm-account-tickets, .cm-account-favs, .cm-ticket, .cm-ticket-state, .cm-check, .cm-summary) .cm-btn--block { display: flex; width: 100%; }
:where(.cm-account-dash, .cm-account-tickets, .cm-account-favs, .cm-ticket, .cm-ticket-state, .cm-check, .cm-summary) .cm-btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

:where(.cm-account-tickets, .cm-account-favs) .cm-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 20px;
	padding: 0;
}
:where(.cm-account-tickets, .cm-account-favs) .cm-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 6px 16px;
	border: 1px solid var(--acc-line);
	border-radius: var(--acc-pill);
	background: var(--acc-white);
	color: var(--acc-text);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color var(--acc-dur) var(--acc-ease), color var(--acc-dur) var(--acc-ease), border-color var(--acc-dur) var(--acc-ease);
}
:where(.cm-account-tickets, .cm-account-favs) .cm-pill:hover { border-color: var(--acc-text); }
:where(.cm-account-tickets, .cm-account-favs) .cm-pill.is-active { background: var(--acc-accent); border-color: var(--acc-accent); color: #fff; }
:where(.cm-account-tickets, .cm-account-favs) .cm-pill:focus-visible { outline: 2px solid var(--acc-accent); outline-offset: 2px; }
.cm-pill__count {
	min-width: 22px;
	padding: 0 6px;
	border-radius: var(--acc-pill, 999px);
	background: rgba(0, 0, 0, .07);
	font-size: 12px;
	line-height: 20px;
	text-align: center;
}
.cm-pill.is-active .cm-pill__count { background: rgba(255, 255, 255, .22); }

:where(.cm-account-dash, .cm-account-tickets, .cm-account-favs) .cm-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 40px 20px;
	border: 1px dashed var(--acc-line);
	border-radius: var(--acc-radius-lg);
	background: var(--acc-white);
	text-align: center;
}
:where(.cm-account-dash, .cm-account-tickets, .cm-account-favs) .cm-empty--compact { padding: 24px 16px; }
.cm-empty__icon {
	display: inline-grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--acc-paper, #F7F3EC);
	color: var(--acc-accent, #FF365F);
}
.cm-empty__title { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.6; }
.cm-empty__text { margin: 0; max-width: 34em; color: var(--acc-muted, #6F747C); font-size: 14px; line-height: 1.65; }

.cm-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 10px;
	border-radius: var(--acc-pill, 999px);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.6;
	white-space: nowrap;
	background: rgba(35, 168, 102, .12);
	color: #17804c;
}
.cm-badge--used,
.cm-badge--past { background: rgba(111, 116, 124, .14); color: #4b5058; }
.cm-badge--cancelled,
.cm-badge--refunded { background: rgba(230, 66, 66, .12); color: #b52a2a; }

/* ------------------------------------------------------------------ */
/* Dashboard                                                            */
/* ------------------------------------------------------------------ */

.cm-account-dash { display: grid; gap: 24px; margin-block-end: 32px; }

.cm-profile {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 16px;
	padding: 20px;
	border-radius: var(--acc-radius-lg);
	background: var(--acc-ink);
	color: #fff;
}
.cm-profile__avatar img,
.cm-profile__img {
	display: block;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid rgba(255, 255, 255, .18);
}
.cm-profile__hello { margin: 0; color: rgba(255, 255, 255, .64); font-size: 13px; }
.cm-profile__name { margin: 2px 0 6px; color: #fff; font-size: clamp(20px, 4vw, 26px); font-weight: 800; line-height: 1.35; }
.cm-profile__contact { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; color: rgba(255, 255, 255, .78); font-size: 13px; }
.cm-profile__contact li { display: inline-flex; align-items: center; gap: 6px; }
.cm-profile__edit { grid-column: 1 / -1; justify-self: start; color: #fff; border-color: rgba(255, 255, 255, .35) !important; }
.cm-profile__edit:hover { border-color: #fff !important; color: #fff; }

.cm-account-dash__title { margin: 0 0 12px; font-size: 18px; font-weight: 800; }

.cm-quicklinks {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
	gap: 10px;
}
.cm-quicklinks__item {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 56px;
	padding: 12px 16px;
	border: 1px solid var(--acc-line);
	border-radius: var(--acc-radius);
	background: var(--acc-white);
	color: var(--acc-text);
	font-weight: 600;
	text-decoration: none;
	transition: border-color var(--acc-dur) var(--acc-ease), transform var(--acc-dur) var(--acc-ease);
}
.cm-quicklinks__item:hover { border-color: var(--acc-text); transform: translateY(-1px); }
.cm-quicklinks__item:focus-visible { outline: 2px solid var(--acc-accent); outline-offset: 2px; }
.cm-quicklinks__icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--acc-paper); color: var(--acc-accent); flex: none; }
.cm-quicklinks__label { flex: 1; min-width: 0; }
.cm-quicklinks__chev { color: var(--acc-muted); flex: none; }

@media (min-width: 640px) {
	.cm-profile { grid-template-columns: auto 1fr auto; padding: 24px 28px; }
	.cm-profile__edit { grid-column: auto; justify-self: end; }
	.cm-profile__avatar img,
	.cm-profile__img { width: 88px; height: 88px; }
}

/* ------------------------------------------------------------------ */
/* Ticket list cards                                                    */
/* ------------------------------------------------------------------ */

.cm-account-tickets__title,
.cm-account-favs__title { margin: 0 0 16px; font-size: clamp(22px, 4vw, 28px); font-weight: 800; line-height: 1.35; }

.cm-account-tickets__list { display: grid; gap: 14px; }

.cm-tcard {
	position: relative;
	display: grid;
	grid-template-columns: 88px 1fr;
	gap: 14px;
	padding: 14px;
	border: 1px solid var(--acc-line);
	border-radius: var(--acc-radius-lg);
	background: var(--acc-white);
	transition: border-color var(--acc-dur) var(--acc-ease), box-shadow var(--acc-dur) var(--acc-ease);
}
.cm-tcard:hover { border-color: #cfc8bd; box-shadow: 0 6px 24px rgba(11, 13, 16, .06); }
.cm-tcard--highlight { border-color: var(--acc-accent); box-shadow: 0 0 0 1px var(--acc-accent) inset; }
.cm-tcard--used,
.cm-tcard--past { background: #fbfaf7; }
.cm-tcard--cancelled,
.cm-tcard--refunded { background: #fdf8f8; }
.cm-tcard--cancelled .cm-tcard__media,
.cm-tcard--refunded .cm-tcard__media { filter: grayscale(1); opacity: .7; }

.cm-tcard__media {
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: 12px;
	background: var(--acc-ink-2);
}
.cm-tcard__img,
.cm-tcard__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cm-tcard__placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: rgba(255, 255, 255, .5); }

.cm-tcard__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cm-tcard__top { display: flex; flex-wrap: wrap; gap: 6px; }
.cm-tcard__title { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.5; }
.cm-tcard__title a { color: inherit; text-decoration: none; }
.cm-tcard__title a:hover { color: var(--acc-accent); }
.cm-tcard__meta { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; color: var(--acc-muted); font-size: 13px; line-height: 1.7; }
.cm-tcard__meta li { display: flex; align-items: flex-start; gap: 6px; }
.cm-tcard__meta .cm-icon { flex: none; margin-block-start: 3px; }
.cm-tcard__sep { margin-inline: 2px; }
.cm-tcard__cta { align-self: flex-start; margin-block-start: 6px; }

.cm-tcard__qr {
	grid-column: 1 / -1;
	justify-self: center;
	display: block;
	width: 112px;
	padding: 6px;
	border: 1px solid var(--acc-line);
	border-radius: 12px;
	background: #fff;
	line-height: 0;
}
.cm-tcard__qr svg { display: block; width: 100%; height: auto; }
.cm-tcard__qr.is-dim { opacity: .4; }

@media (min-width: 560px) {
	.cm-tcard { grid-template-columns: 104px 1fr 112px; align-items: center; padding: 16px; }
	.cm-tcard__qr { grid-column: auto; width: 112px; }
}

/* ------------------------------------------------------------------ */
/* Favorites                                                            */
/* ------------------------------------------------------------------ */

.cm-account-favs__group { margin-block-end: 32px; scroll-margin-block-start: 96px; }
.cm-account-favs__heading { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 19px; font-weight: 800; }
.cm-account-favs__count { padding: 0 8px; border-radius: var(--acc-pill); background: var(--acc-paper); color: var(--acc-muted); font-size: 13px; line-height: 24px; }
.cm-account-favs__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
	gap: 16px;
}
.cm-card--fallback { overflow: hidden; border: 1px solid var(--acc-line); border-radius: var(--acc-radius); background: var(--acc-white); }
.cm-card--fallback .cm-card__media { display: block; aspect-ratio: 16 / 10; background: var(--acc-ink-2); }
.cm-card--fallback .cm-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cm-card--fallback .cm-card__placeholder { display: grid; place-items: center; height: 100%; color: rgba(255, 255, 255, .5); }
.cm-card--fallback .cm-card__body { padding: 12px 14px 16px; }
.cm-card--fallback .cm-card__meta { color: var(--acc-muted); font-size: 12px; }
.cm-card--fallback .cm-card__title { margin: 4px 0 0; font-size: 15px; font-weight: 700; line-height: 1.6; }
.cm-card--fallback .cm-card__title a { color: inherit; text-decoration: none; }

/* ------------------------------------------------------------------ */
/* Digital ticket                                                       */
/* ------------------------------------------------------------------ */

.cm-ticket-page { padding: 24px 16px 48px; background: var(--color-paper, #F7F3EC); }
.cm-ticket-page__inner { max-width: 1280px; margin-inline: auto; }

.cm-ticket {
	position: relative;
	width: 100%;
	max-width: 440px;
	margin: 0 auto;
	overflow: hidden;
	border-radius: var(--acc-radius-lg);
	background: var(--acc-ink);
	color: #fff;
	box-shadow: 0 18px 48px rgba(11, 13, 16, .22);
}

/* An Elementor widget wrapper carrying the contract class (e.g. _css_classes "cm-ticket")
   must not become a second dark card around the real ticket. */
.elementor-element.cm-ticket:not(article) {
	max-width: none;
	overflow: visible;
	border-radius: 0;
	background: none;
	color: inherit;
	box-shadow: none;
}

.cm-ticket__preview {
	margin: 0;
	padding: 6px 12px;
	background: var(--acc-gold);
	color: var(--acc-ink);
	font-size: 12px;
	font-weight: 700;
	text-align: center;
}

.cm-ticket__poster {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 260px;
	background: linear-gradient(160deg, #1d2430, var(--acc-ink));
	isolation: isolate;
}
.cm-ticket__img,
.cm-ticket__poster > img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.cm-ticket__poster::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(11, 13, 16, .05) 20%, rgba(11, 13, 16, .6) 58%, var(--acc-ink) 100%);
}
.cm-ticket__head { width: 100%; padding: 24px 20px 18px; }
.cm-ticket__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 8px;
	padding: 3px 10px;
	border-radius: var(--acc-pill);
	background: rgba(255, 255, 255, .14);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	backdrop-filter: blur(6px);
}
.cm-ticket__title { margin: 0 0 8px; color: #fff; font-size: clamp(24px, 6vw, 30px); font-weight: 800; line-height: 1.35; }
.cm-ticket__when,
.cm-ticket__where { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 0; color: rgba(255, 255, 255, .86); font-size: 14px; line-height: 1.7; }
.cm-ticket__dot { opacity: .6; }

.cm-ticket__banner {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 16px;
	padding: 12px 14px;
	border-radius: var(--acc-radius);
	font-size: 14px;
	line-height: 1.7;
}
.cm-ticket__banner > div { display: grid; gap: 2px; }
.cm-ticket__banner strong { font-size: 15px; }
.cm-ticket__banner .cm-icon { flex: none; margin-block-start: 2px; }
.cm-ticket__banner--success { background: rgba(35, 168, 102, .16); color: #7be0ac; }
.cm-ticket__banner--neutral { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .88); }
.cm-ticket__banner--danger { background: rgba(230, 66, 66, .2); color: #ffa3a3; }

.cm-ticket__stub {
	position: relative;
	margin: 16px 12px 0;
	padding: 20px 16px 18px;
	border-radius: 18px;
	background: #fff;
	color: var(--acc-text);
}
/* Perforation notches */
.cm-ticket__stub::before,
.cm-ticket__stub::after {
	content: "";
	position: absolute;
	inset-block-start: -11px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--acc-ink);
}
.cm-ticket__stub::before { inset-inline-start: 22px; }
.cm-ticket__stub::after { inset-inline-end: 22px; }

.cm-ticket__grid { display: grid; gap: 16px; }
.cm-ticket__details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 0; }
.cm-ticket__row { min-width: 0; }
.cm-ticket__row--wide { grid-column: 1 / -1; }
.cm-ticket__row dt { margin: 0 0 2px; color: var(--acc-muted); font-size: 12px; font-weight: 500; }
.cm-ticket__row dd { margin: 0; font-size: 15px; font-weight: 800; line-height: 1.6; overflow-wrap: anywhere; }

.cm-ticket__qr {
	justify-self: center;
	width: min(240px, 100%);
	padding: 8px;
	border: 1px solid var(--acc-line);
	border-radius: 16px;
	background: #fff;
	line-height: 0;
}
.cm-ticket__qr .cm-qr,
.cm-ticket__qr svg { display: block; width: 100%; height: auto; }
.cm-ticket__qr.is-dim svg { opacity: .35; }
.cm-ticket__qr-void {
	display: grid;
	place-items: center;
	gap: 8px;
	aspect-ratio: 1;
	border-radius: 10px;
	background: repeating-linear-gradient(45deg, #f2f0ec, #f2f0ec 8px, #e9e6e0 8px, #e9e6e0 16px);
	color: var(--acc-muted);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	align-content: center;
}

.cm-ticket__code {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 10px;
	margin-block-start: 16px;
	padding-block-start: 14px;
	border-block-start: 1px dashed var(--acc-line);
}
.cm-ticket__code-label { color: var(--acc-muted); font-size: 12px; }
.cm-ticket__code-value { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 17px; font-weight: 700; color: var(--acc-text); }
.cm-ticket__copy {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid var(--acc-line);
	border-radius: 10px;
	background: #fff;
	color: var(--acc-text);
	cursor: pointer;
	transition: border-color var(--acc-dur) var(--acc-ease), color var(--acc-dur) var(--acc-ease);
}
.cm-ticket__copy:hover { border-color: var(--acc-text); }
.cm-ticket__copy:focus-visible { outline: 2px solid var(--acc-accent); outline-offset: 2px; }
.cm-ticket__copy.is-done { border-color: var(--acc-success); color: var(--acc-success); }
.cm-ticket__copied { flex-basis: 100%; min-height: 1em; color: var(--acc-success); font-size: 12px; text-align: center; }
.cm-ticket__copied:empty { display: none; }
.cm-ticket__address { margin: 10px 0 0; color: var(--acc-muted); font-size: 12px; line-height: 1.6; text-align: center; }

.cm-ticket__actions { display: grid; gap: 10px; padding: 16px; }
.cm-ticket .cm-ticket__wallet { background: var(--acc-ink-2); border-color: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .7); opacity: 1; }
.cm-ticket__soon {
	padding: 0 8px;
	border-radius: var(--acc-pill);
	background: rgba(214, 180, 92, .18);
	color: var(--acc-gold);
	font-size: 11px;
	line-height: 20px;
}
.cm-ticket .cm-ticket__print { color: #fff; border-color: rgba(255, 255, 255, .35); }
.cm-ticket .cm-ticket__print:hover { border-color: #fff; }
.cm-ticket__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 13px; }
.cm-ticket__links a { color: rgba(255, 255, 255, .78); text-underline-offset: 4px; }
.cm-ticket__links a:hover { color: #fff; }

.cm-ticket--cancelled .cm-ticket__poster > img,
.cm-ticket--refunded .cm-ticket__poster > img,
.cm-ticket--session_cancelled .cm-ticket__poster > img { filter: grayscale(1); }

@media (min-width: 480px) {
	.cm-ticket__head { padding: 28px 24px 20px; }
	.cm-ticket__stub { margin-inline: 16px; padding: 22px 20px 20px; }
}

/* ------------------------------------------------------------------ */
/* Ticket states (invalid / neutral)                                    */
/* ------------------------------------------------------------------ */

.cm-ticket-state {
	display: grid;
	justify-items: center;
	gap: 10px;
	max-width: 520px;
	margin: 0 auto;
	padding: 36px 20px;
	border: 1px solid var(--acc-line);
	border-radius: var(--acc-radius-lg);
	background: var(--acc-white);
	text-align: center;
}
.cm-ticket-state__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(230, 66, 66, .1); color: var(--acc-danger); }
.cm-ticket-state--neutral .cm-ticket-state__icon { background: var(--acc-paper); color: var(--acc-text); }
.cm-ticket-state__title { margin: 4px 0 0; font-size: clamp(22px, 5vw, 28px); font-weight: 800; line-height: 1.4; }
.cm-ticket-state__text { margin: 0; color: var(--acc-muted); font-size: 15px; line-height: 1.65; }
.cm-ticket-state__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-block-start: 8px; }

/* ------------------------------------------------------------------ */
/* Ticket check (staff)                                                 */
/* ------------------------------------------------------------------ */

.cm-check { display: grid; gap: 14px; max-width: 520px; margin: 0 auto; }
.cm-check__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.cm-check__eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--acc-pill); background: var(--acc-ink); color: #fff; font-size: 13px; font-weight: 700; }
.cm-check__head .cm-ticket__preview { border-radius: var(--acc-pill); }
.cm-check__card { display: grid; gap: 14px; padding: 20px; border: 1px solid var(--acc-line); border-radius: var(--acc-radius-lg); background: var(--acc-white); }
.cm-check__title { margin: 0; font-size: clamp(20px, 5vw, 26px); font-weight: 800; line-height: 1.4; }
.cm-check__hint { margin: 0; color: var(--acc-muted); font-size: 14px; line-height: 1.65; }
.cm-check__details { display: grid; gap: 0; margin: 0; }
.cm-check__details > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-block-end: 1px solid var(--acc-line); font-size: 14px; }
.cm-check__details > div:last-child { border-block-end: 0; }
.cm-check__details dt { color: var(--acc-muted); }
.cm-check__details dd { margin: 0; font-weight: 700; text-align: end; }

.cm-check__field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.cm-check__field select,
.cm-check__field input {
	width: 100%;
	min-height: 46px;
	padding: 8px 12px;
	border: 1px solid var(--acc-line);
	border-radius: 12px;
	background: #fff;
	color: var(--acc-text);
	font: inherit;
	font-size: 15px;
}
.cm-check__field select:focus,
.cm-check__field input:focus { outline: 2px solid var(--acc-accent); outline-offset: 1px; border-color: transparent; }
.cm-check__field input[aria-invalid="true"] { border-color: var(--acc-danger); }

.cm-check__result {
	display: grid;
	gap: 4px;
	padding: 18px;
	border-radius: var(--acc-radius-lg);
	font-size: 14px;
	line-height: 1.6;
	text-align: center;
}
.cm-check__result > .cm-icon { justify-self: center; }
.cm-check__result > div { display: grid; gap: 4px; }
.cm-check__result strong { font-size: 20px; font-weight: 800; }
.cm-check__result--success { background: var(--acc-success); color: #fff; }
.cm-check__result--warning { background: #fff4dc; color: #6b4a06; border: 1px solid #f0d28c; }
.cm-check__result--danger,
.cm-check__result--invalid { background: var(--acc-danger); color: #fff; }
.cm-check__result-details { display: grid; gap: 2px; margin: 8px 0 0; }
.cm-check__result-details > div { display: flex; justify-content: center; gap: 6px; }
.cm-check__result-details dt { opacity: .8; }
.cm-check__result-details dd { margin: 0; font-weight: 700; }

.cm-check__override { display: grid; gap: 10px; padding: 16px; border: 1px dashed var(--acc-warning); border-radius: var(--acc-radius); background: #fffaf0; }
.cm-check__manual { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: end; padding: 16px; border-radius: var(--acc-radius); background: var(--acc-paper); }
@media (min-width: 480px) {
	.cm-check__manual { grid-template-columns: 1fr auto; }
}

/* ------------------------------------------------------------------ */
/* Order summary                                                        */
/* ------------------------------------------------------------------ */

.cm-summary { display: grid; gap: 20px; max-width: 560px; margin: 0 auto 32px; }
.cm-summary--editor { padding: 20px; border: 1px dashed var(--acc-line); border-radius: var(--acc-radius); text-align: center; }
.cm-summary__head { display: grid; justify-items: center; gap: 8px; text-align: center; }
.cm-summary__icon { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; color: #fff; }
.cm-summary__icon--success { background: var(--acc-success); box-shadow: 0 0 0 10px rgba(35, 168, 102, .12); }
.cm-summary__icon--pending { background: var(--acc-gold); color: var(--acc-ink); box-shadow: 0 0 0 10px rgba(214, 180, 92, .16); }
.cm-summary__icon--failed { background: var(--acc-danger); box-shadow: 0 0 0 10px rgba(230, 66, 66, .12); }
.cm-summary__title { margin: 10px 0 0; font-size: clamp(22px, 5vw, 30px); font-weight: 800; line-height: 1.4; }
.cm-summary__lead { margin: 0; max-width: 36em; color: var(--acc-muted); font-size: 15px; line-height: 1.65; }
.cm-summary__note { margin: 0; color: var(--acc-muted); font-size: 13px; }

.cm-summary__box { padding: 20px; border: 1px solid var(--acc-line); border-radius: var(--acc-radius-lg); background: var(--acc-white); }
.cm-summary__subtitle { margin: 0 0 10px; font-size: 17px; font-weight: 800; }
.cm-summary__subtitle--sm { margin-block-start: 16px; font-size: 14px; }
.cm-summary__rows { display: grid; margin: 0; }
.cm-summary__rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14px; }
.cm-summary__rows dt { color: var(--acc-muted); }
.cm-summary__rows dd { margin: 0; font-weight: 700; text-align: end; }
.cm-summary__rows--total { margin-block-start: 12px; padding-block-start: 8px; border-block-start: 1px solid var(--acc-line); }
.cm-summary__total dt { color: var(--acc-text); font-weight: 700; }
.cm-summary__total dd { font-size: 18px; font-weight: 800; }

.cm-summary__event { display: flex; gap: 12px; margin-block-start: 14px; padding-block-start: 14px; border-block-start: 1px solid var(--acc-line); }
.cm-summary__media { flex: none; width: 64px; height: 64px; overflow: hidden; border-radius: 12px; background: var(--acc-ink-2); }
.cm-summary__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cm-summary__event-body { display: grid; gap: 2px; min-width: 0; }
.cm-summary__event-title { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.6; }
.cm-summary__event-title a { color: inherit; text-decoration: none; }
.cm-summary__meta { display: flex; align-items: flex-start; gap: 6px; margin: 0; color: var(--acc-muted); font-size: 13px; line-height: 1.7; }
.cm-summary__meta .cm-icon { flex: none; margin-block-start: 3px; }

.cm-summary__lines,
.cm-summary__tickets { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.cm-summary__lines li,
.cm-summary__tickets li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--acc-paper); font-size: 14px; }
.cm-summary__line-name { min-width: 0; overflow-wrap: anywhere; }
.cm-summary__qty { margin-inline-start: 6px; color: var(--acc-muted); }
.cm-summary__line-total { flex: none; font-weight: 700; }
.cm-summary__tickets a { flex: none; color: var(--acc-accent); font-weight: 700; text-decoration: none; }

.cm-summary__actions { display: grid; gap: 10px; }
@media (min-width: 480px) {
	.cm-summary__actions { grid-template-columns: 1fr 1fr; }
	.cm-summary__actions .cm-btn--block { grid-column: 1 / -1; }
}

/* Woo thank-you: our summary replaces Woo's overview/notices for ticket orders. */
.woocommerce-order:has(> .cm-summary) > .woocommerce-thankyou-order-received,
.woocommerce-order:has(> .cm-summary) > .woocommerce-order-overview,
.woocommerce-order:has(> .cm-summary) > .woocommerce-thankyou-order-failed,
.woocommerce-order:has(> .cm-summary) > .woocommerce-thankyou-order-failed-actions,
.woocommerce-order:has(> .cm-summary) > .cm-order__state { display: none; }

/* ------------------------------------------------------------------ */
/* Motion                                                               */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	.cm-account-dash *,
	.cm-account-tickets *,
	.cm-ticket *,
	.cm-check *,
	.cm-summary * { transition: none !important; }
	.cm-quicklinks__item:hover,
	:where(.cm-account-dash, .cm-account-tickets, .cm-account-favs, .cm-ticket, .cm-ticket-state, .cm-check, .cm-summary) .cm-btn:hover { transform: none; }
}

/* ------------------------------------------------------------------ */
/* Print: only the ticket, clean, one page                              */
/* ------------------------------------------------------------------ */

@media print {
	@page { size: auto; margin: 12mm; }

	body:has(.cm-ticket) { background: #fff !important; }
	body:has(.cm-ticket) *:not(.cm-ticket):not(.cm-ticket *):not(:has(.cm-ticket)) { display: none !important; }
	body:has(.cm-ticket) *:has(.cm-ticket) {
		position: static !important;
		width: auto !important;
		max-width: none !important;
		min-height: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		background: none !important;
		box-shadow: none !important;
		transform: none !important;
	}

	.cm-ticket {
		max-width: 110mm;
		margin: 0 auto !important;
		border: 1px solid #000;
		box-shadow: none;
		break-inside: avoid;
		page-break-inside: avoid;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}
	.elementor-element.cm-ticket:not(article) { max-width: none; border: 0; }
	.cm-ticket__poster { min-height: 52mm; }
	.cm-ticket__eyebrow { backdrop-filter: none; }
	.cm-ticket__actions,
	.cm-ticket__copy,
	.cm-ticket__copied,
	.cm-ticket__preview { display: none !important; }
	.cm-ticket__stub { margin-block-end: 12px; }
	.cm-ticket__qr { width: 55mm; border-color: #000; }
}
