/* Ticket-tier picker modal — opens from the public calendar when a
   festival event has configured ticket tiers. Mobile-first; on phone
   the dialog covers the full viewport, on tablet+ it floats centered. */

/* The `display: flex` rule has higher specificity than the user-agent
   `[hidden] { display: none }` rule and would override it — so we scope
   the flex layout to elements WITHOUT the hidden attribute, leaving the
   browser default to keep the modal hidden until JS removes `hidden`. */
.tt-modal:not([hidden]) {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}
.tt-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 30, 50, .58);
	backdrop-filter: blur(2px);
	animation: tt-fade-in .18s ease;
}
@keyframes tt-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes tt-pop-in {
	from { opacity: 0; transform: translateY(8px) scale(.98); }
	to   { opacity: 1; transform: translateY(0)   scale(1);   }
}

.tt-dialog {
	position: relative;
	width: 100%;
	max-width: 540px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 20px 60px rgba(15, 30, 50, .35);
	padding: 26px 28px 20px;
	box-sizing: border-box;
	animation: tt-pop-in .22s cubic-bezier(.2,.7,.3,1.1);
}
.tt-close {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 32px; height: 32px;
	background: transparent;
	border: 0;
	font-size: 26px;
	line-height: 1;
	color: #6b7790;
	cursor: pointer;
	border-radius: 8px;
	transition: background .12s ease, color .12s ease;
}
.tt-close:hover { background: #f1f4f8; color: #1b3b50; }

.tt-head { margin-bottom: 18px; }
.tt-eyebrow {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: #F0621A;
	margin-bottom: 6px;
}
.tt-title {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 700;
	color: #1B3B50;
	line-height: 1.2;
}
.tt-subtitle {
	margin: 0;
	font-size: 13px;
	color: #6b7790;
	line-height: 1.4;
}

.tt-tiers {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 16px;
}
.tt-tier {
	display: flex;
	gap: 14px;
	align-items: center;
	padding: 16px 18px;
	background: #fff8f0;
	border: 1.5px solid #f5d5b5;
	border-radius: 14px;
	transition: border-color .12s ease, background .12s ease, transform .12s ease;
}
.tt-tier:hover {
	border-color: #F0621A;
	background: #fff2e3;
	transform: translateY(-1px);
}
.tt-tier-body {
	flex: 1;
	min-width: 0;
}
.tt-tier-name {
	font-size: 16px;
	font-weight: 700;
	color: #1B3B50;
	margin-bottom: 4px;
}
.tt-tier-desc {
	font-size: 13px;
	color: #4b5871;
	line-height: 1.4;
	margin-bottom: 6px;
}
.tt-tier-price {
	font-size: 18px;
	font-weight: 700;
	color: #F0621A;
}
.tt-tier-buy {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	padding: 11px 20px;
	background: #F0621A;
	color: #fff;
	border-radius: 10px;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	white-space: nowrap;
	transition: background .12s ease, box-shadow .12s ease;
}
.tt-tier-buy:hover {
	background: #d9521a;
	box-shadow: 0 4px 12px rgba(240, 98, 26, .35);
	color: #fff;
}

.tt-foot {
	margin: 0;
	padding-top: 12px;
	border-top: 1px solid #eef1f5;
	font-size: 12px;
	color: #6b7790;
	text-align: center;
}

/* Phone: full-bleed, tighter padding, stacked tier rows */
@media (max-width: 560px) {
	.tt-modal { padding: 0; align-items: stretch; }
	.tt-dialog {
		max-width: 100%;
		max-height: 100vh;
		border-radius: 0;
		padding: 22px 18px 16px;
	}
	.tt-title { font-size: 20px; }
	.tt-tier {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		padding: 14px 14px;
	}
	.tt-tier-buy {
		justify-content: center;
		padding: 12px 18px;
	}
}
