/* ---------- tickets in the customer account ---------- */

.temptour-ticket-list {
	list-style: none;
	margin: 0 0 1.5em;
	padding: 0;
	display: grid;
	gap: 10px;
}

.temptour-ticket-list__item {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0;
	padding: 14px 16px;
	border: 1px solid #e3e5e8;
	border-radius: 12px;
	background: #fff;
	flex-wrap: wrap;
}

.temptour-ticket-list__seat {
	flex: 0 0 auto;
	min-width: 52px;
	padding: 8px 10px;
	border-radius: 8px;
	background: #14171a;
	color: #fff;
	font-weight: 700;
	font-size: 1.05em;
	text-align: center;
	line-height: 1.1;
}

.temptour-ticket-list__main {
	flex: 1 1 200px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.temptour-ticket-list__main strong {
	line-height: 1.3;
}

.temptour-ticket-list__main span {
	color: #5b6470;
	font-size: .9em;
}

.temptour-ticket-list__main code {
	font-size: .82em;
	letter-spacing: .05em;
	color: #5b6470;
	background: none;
	padding: 0;
}

.temptour-ticket-list__actions {
	flex: 0 0 auto;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.temptour-ticket-list__actions .button {
	font-size: .88em;
	text-decoration: none;
	white-space: nowrap;
}

/* The PDF link is the quieter of the two actions. */
.temptour-ticket-list__pdf {
	background: transparent !important;
	color: inherit !important;
	border: 1px solid #d8dce3 !important;
}

.temptour-cancel-box {
	margin-top: 2em;
	padding: 18px 20px;
	border: 1px solid #e3e5e8;
	border-radius: 12px;
	background: #fafbfc;
}

.temptour-cancel-box h2 {
	margin: 0 0 .4em;
	font-size: 1.1em;
}

.temptour-cancel-box p {
	margin: 0 0 1em;
	color: #5b6470;
}

.temptour-cancel-box label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
}

.temptour-cancel-box textarea {
	width: 100%;
	max-width: 460px;
}

@media (max-width: 520px) {
	.temptour-ticket-list__actions {
		width: 100%;
	}

	.temptour-ticket-list__actions .button {
		flex: 1;
		text-align: center;
	}
}

/* ---------- dedicated event page ---------- */

.temptour-page {
	max-width: 1180px;
	margin: 0 auto;
	padding: 40px 24px 72px;
	box-sizing: border-box;
}

.temptour-event {
	--tt-ink: #14171a;
	--tt-soft: #5b6470;
	--tt-hair: #e6e8ec;
	--tt-bg: #f7f8fa;
	--tt-accent: #14171a;
	--tt-ok: #16a34a;

	color: var(--tt-ink);
}

.temptour-hero {
	position: relative;
	margin-bottom: 44px;
	border-radius: 16px;
	overflow: hidden;
	background: var(--tt-bg);
	border: 1px solid var(--tt-hair);
}

.temptour-hero__media {
	height: 320px;
	background-size: cover;
	background-position: center;
}

.temptour-hero__inner {
	padding: 30px 32px 32px;
}

.temptour-hero__title {
	margin: 0 0 18px;
	font-size: clamp( 1.75rem, 3.4vw, 2.6rem );
	line-height: 1.15;
	letter-spacing: -.02em;
}

.temptour-hero__facts {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 40px;
}

.temptour-hero__facts li {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.temptour-hero__fact-label {
	font-size: .72rem;
	text-transform: uppercase;
	letter-spacing: .09em;
	color: var(--tt-soft);
}

.temptour-hero__fact-value {
	font-weight: 600;
	font-size: 1.02rem;
}

.temptour-hero__price {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 600;
}

.temptour-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 48px;
	align-items: start;
}

.temptour-section {
	margin-bottom: 40px;
}

.temptour-section h2 {
	margin: 0 0 16px;
	font-size: 1.3rem;
	letter-spacing: -.01em;
}

.temptour-section--lead {
	font-size: 1.1rem;
	line-height: 1.65;
	color: var(--tt-soft);
}

.temptour-prose {
	line-height: 1.7;
}

.temptour-ticks,
.temptour-crosses {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.temptour-ticks li,
.temptour-crosses li {
	position: relative;
	margin: 0;
	padding-left: 28px;
	line-height: 1.5;
}

.temptour-ticks li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: .42em;
	width: 11px;
	height: 6px;
	border-left: 2px solid var(--tt-ok);
	border-bottom: 2px solid var(--tt-ok);
	transform: rotate(-45deg);
}

.temptour-crosses li {
	color: var(--tt-soft);
}

.temptour-crosses li::before {
	content: "×";
	position: absolute;
	left: 6px;
	top: -.05em;
	font-size: 1.25em;
	line-height: 1.4;
	color: #b9bfc7;
}

.temptour-columns {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax(220px, 1fr) );
	gap: 28px;
}

.temptour-timeline {
	list-style: none;
	margin: 0;
	padding: 0 0 0 26px;
	border-left: 2px solid var(--tt-hair);
	display: grid;
	gap: 26px;
}

.temptour-timeline__item {
	position: relative;
	margin: 0;
}

.temptour-timeline__item::before {
	content: "";
	position: absolute;
	left: -33px;
	top: 4px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--tt-accent);
}

.temptour-timeline__when {
	display: inline-block;
	margin-bottom: 4px;
	font-size: .74rem;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--tt-soft);
}

.temptour-timeline__title {
	margin: 0 0 4px;
	font-size: 1.05rem;
}

.temptour-timeline__text {
	margin: 0;
	color: var(--tt-soft);
	line-height: 1.6;
}

.temptour-aside {
	position: sticky;
	top: 24px;
}

.temptour-card {
	border: 1px solid var(--tt-hair);
	border-radius: 16px;
	padding: 22px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 28px -18px rgba(16, 24, 40, .28);
}

.temptour-card__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 16px;
	margin-bottom: 4px;
	border-bottom: 1px solid var(--tt-hair);
}

.temptour-card__from {
	font-weight: 600;
	font-size: 1.05rem;
}

.temptour-card__price {
	color: var(--tt-soft);
	font-size: .92rem;
}

@media (max-width: 980px) {
	.temptour-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.temptour-aside {
		position: static;
	}

	.temptour-hero__media {
		height: 220px;
	}

	.temptour-hero__inner {
		padding: 24px 20px 26px;
	}
}

/* ---------- booking widget ---------- */

.temptour-booking {
	--tt-line: #e3e5e8;
	--tt-muted: #6b7280;
	--tt-taken: #d5d7db;
	--tt-selected: #16a34a;

	margin: 1.5em 0;
}

.temptour-booking__heading {
	font-size: 1.05em;
	margin: 0 0 .6em;
}

.temptour-booking__dates {
	margin-bottom: 1.6em;
}

.temptour-dates-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.temptour-date {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	padding: 9px 14px;
	border: 2px solid var(--tt-line);
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	line-height: 1.3;
	text-align: left;
}

.temptour-date:hover:not(:disabled) {
	border-color: var(--tt-muted);
}

.temptour-date.is-active {
	border-color: currentColor;
	background: #f5faff;
}

.temptour-date:disabled {
	opacity: .5;
	cursor: not-allowed;
}

.temptour-date__label {
	font-weight: 600;
}

.temptour-date__seats {
	font-size: .8em;
	color: var(--tt-muted);
}

.temptour-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin-bottom: 1em;
	font-size: .85em;
	color: var(--tt-muted);
}

.temptour-legend__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.temptour-legend__swatch {
	width: 14px;
	height: 14px;
	border-radius: 4px;
	background: #2563eb;
	display: inline-block;
}

.temptour-legend__swatch.is-selected {
	background: var(--tt-selected);
}

.temptour-legend__swatch.is-taken {
	background: var(--tt-taken);
}

.temptour-map {
	padding: 16px;
	border: 1px solid var(--tt-line);
	border-radius: 12px;
	overflow-x: auto;
	background: #fafbfc;
}

.temptour-map.is-busy {
	opacity: .6;
	pointer-events: none;
}

.temptour-map .temptour-grid {
	display: grid;
	gap: 8px;
	width: max-content;
	margin: 0 auto;
}

.temptour-seat,
.temptour-cell {
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	font-size: .78em;
	font-weight: 600;
	border: 2px solid var(--tt-line);
	background: #fff;
	padding: 0;
}

.temptour-seat {
	cursor: pointer;
	transition: transform .1s ease;
}

.temptour-seat:hover:not(:disabled) {
	transform: translateY(-2px);
}

.temptour-seat.is-selected {
	background: var(--tt-selected);
	border-color: var(--tt-selected);
	color: #fff !important;
}

.temptour-seat.is-taken {
	background: var(--tt-taken);
	border-color: var(--tt-taken);
	color: #8a8f98 !important;
	cursor: not-allowed;
	text-decoration: line-through;
}

.temptour-cell--aisle,
.temptour-cell--empty {
	border: none;
	background: none;
}

.temptour-cell--driver,
.temptour-cell--door,
.temptour-cell--stage,
.temptour-cell--wc {
	background: #eef0f3;
	border-color: #eef0f3;
	color: var(--tt-muted);
}

.temptour-notice {
	margin: 0 0 .8em;
	padding: 9px 12px;
	border-radius: 8px;
	font-size: .9em;
}

.temptour-notice--error {
	background: #fdeceb;
	color: #a4231b;
}

.temptour-booking__summary {
	margin-top: 1.4em;
	padding: 16px;
	border: 1px solid var(--tt-line);
	border-radius: 12px;
}

.temptour-summary__empty {
	margin: 0 0 1em;
	color: var(--tt-muted);
}

.temptour-summary__list {
	list-style: none;
	margin: 0 0 .8em;
	padding: 0;
}

.temptour-summary__list li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 0;
	border-bottom: 1px solid var(--tt-line);
}

.temptour-summary__seat {
	min-width: 42px;
	padding: 3px 8px;
	border-radius: 6px;
	color: #fff;
	font-weight: 600;
	font-size: .8em;
	text-align: center;
}

.temptour-summary__class {
	color: var(--tt-muted);
	font-size: .88em;
}

.temptour-summary__price {
	margin-left: auto;
	font-weight: 600;
}

.temptour-summary__remove {
	border: none;
	background: none;
	cursor: pointer;
	font-size: 1.2em;
	line-height: 1;
	color: var(--tt-muted);
	padding: 0 4px;
}

.temptour-summary__remove:hover {
	color: #a4231b;
}

.temptour-summary__total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0 0 .4em;
	font-size: 1.1em;
}

.temptour-summary__hold {
	margin: 0 0 1em;
	font-size: .82em;
	color: var(--tt-muted);
}


/* The card already provides the frame, so the widget drops its own chrome. */
.temptour-card .temptour-booking {
	margin: 0;
}

.temptour-card .temptour-booking__summary {
	margin-top: 16px;
	padding: 0;
	border: none;
	border-top: 1px solid var(--tt-hair);
	padding-top: 16px;
}

.temptour-card .temptour-map {
	padding: 12px 8px;
	background: #fff;
	border-color: var(--tt-hair);
}

.temptour-card .temptour-booking__heading {
	font-size: .78rem;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--tt-soft);
	margin: 18px 0 10px;
}

.temptour-card .temptour-dates-list {
	display: grid;
	gap: 6px;
}

.temptour-card .temptour-date {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	padding: 10px 12px;
	border-radius: 10px;
	border-width: 1px;
}

.temptour-card .temptour-date.is-active {
	border-color: var(--tt-accent);
	border-width: 2px;
	background: #fff;
}

/* The card is drawn by this plugin, so the main action is drawn here too
   rather than inheriting whatever the active theme does to a bare button.
   Scoped two classes deep so a theme's plain .button rule cannot outrank it. */
.temptour-booking .temptour-booking__submit {
	display: block;
	width: 100%;
	margin: 0;
	padding: 15px 20px;
	border: none;
	border-radius: 10px;
	background: var(--tt-ink, #14171a);
	color: #fff;
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color .15s ease, transform .08s ease;
}

.temptour-booking .temptour-booking__submit:hover:not([disabled]) {
	background: #2b3138;
}

.temptour-booking .temptour-booking__submit:active:not([disabled]) {
	transform: translateY(1px);
}

.temptour-booking .temptour-booking__submit:focus-visible {
	outline: 3px solid var(--tt-selected, #16a34a);
	outline-offset: 2px;
}

/* A real muted state reads as deliberate; dimming the live style reads broken. */
.temptour-booking .temptour-booking__submit[disabled] {
	background: var(--tt-taken, #d5d7db);
	color: #79818c;
	cursor: not-allowed;
}

@media (max-width: 600px) {
	.temptour-map {
		padding: 10px;
	}

	.temptour-seat,
	.temptour-cell {
		height: 36px;
		font-size: .7em;
	}
}

.temptour-hold-note {
	display: block;
	margin-top: 4px;
	font-size: .9em;
	opacity: .85;
}
