/* TFE Ticketing — checkout modal. Design system: DM Sans, --primary #2563eb, mobile-first. v10.0.0 */
:root {
	--tfe-primary: #2563eb;
	--tfe-primary-dark: #1e40af;
}

.tfe-checkout-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.72);
	z-index: 99999;
	display: none;
	align-items: flex-end;
	justify-content: center;
	padding: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.tfe-checkout-overlay.tfe-open {
	display: flex;
}

.tfe-checkout-modal {
	position: relative;
	background: #fff;
	color: #0f172a;
	width: 100%;
	max-width: 460px;
	border-radius: 20px 20px 0 0;
	padding: 24px 20px 28px;
	font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.35);
	animation: tfe-slide-up 0.22s ease-out;
}

@keyframes tfe-slide-up {
	from { transform: translateY(24px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

@media (min-width: 600px) {
	.tfe-checkout-overlay { align-items: center; padding: 24px 16px; }
	.tfe-checkout-modal { border-radius: 20px; padding: 28px; }
}

.tfe-checkout-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: #f1f5f9;
	color: #475569;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s;
}

.tfe-checkout-close:hover {
	background: #e2e8f0;
}

.tfe-checkout-title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 16px;
	padding-right: 40px;
}

.tfe-checkout-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tfe-checkout-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
}

.tfe-checkout-input {
	display: block;
	width: 100%;
	margin-top: 5px;
	padding: 11px 13px;
	font-size: 15px;
	font-family: inherit;
	color: #0f172a;
	background: #fff;
	border: 1.5px solid #cbd5e1;
	border-radius: 10px;
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
	box-sizing: border-box;
}

.tfe-checkout-input:focus {
	border-color: var(--tfe-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.tfe-checkout-consent {
	display: flex;
	gap: 9px;
	align-items: flex-start;
	font-size: 13px;
	color: #475569;
	line-height: 1.45;
	cursor: pointer;
}

.tfe-checkout-consent input {
	margin-top: 2px;
	flex: 0 0 auto;
}

.tfe-checkout-total {
	font-size: 16px;
	padding: 12px 0 2px;
	border-top: 1px dashed #cbd5e1;
}

.tfe-checkout-total strong {
	font-size: 20px;
	color: var(--tfe-primary);
}

.tfe-checkout-error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
	border-radius: 10px;
	padding: 10px 13px;
	font-size: 13px;
}

.tfe-checkout-submit {
	display: block;
	width: 100%;
	padding: 14px;
	font-size: 16px;
	font-weight: 700;
	font-family: inherit;
	color: #fff;
	background: var(--tfe-primary);
	border: 0;
	border-radius: 12px;
	cursor: pointer;
	transition: background 0.15s, transform 0.1s;
}

.tfe-checkout-submit:hover {
	background: var(--tfe-primary-dark);
}

.tfe-checkout-submit:active {
	transform: scale(0.99);
}

.tfe-checkout-submit[disabled] {
	background: #94a3b8;
	cursor: wait;
}

.tfe-checkout-soldout {
	background: #f1f5f9;
	color: #475569;
	border-radius: 12px;
	padding: 20px;
	text-align: center;
	font-weight: 600;
}

body.tfe-modal-open {
	overflow: hidden;
}
