/* Popup для покупки билетов */
.ticket-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.8);
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.ticket-popup-overlay.active {
	display: flex;
	opacity: 1;
}

.ticket-popup {
	position: relative;
	width: 100%;
	max-width: 1200px;
	height: 90vh;
	background: #fff;
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
	transform: scale(0.9);
	transition: transform 0.3s ease;
}

.ticket-popup-overlay.active .ticket-popup {
	transform: scale(1);
}

.ticket-popup-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem;
	background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
	z-index: 10;
}

.ticket-popup-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: #111827;
}

.ticket-popup-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	background: #fff;
	border: none;
	border-radius: 0.5rem;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ticket-popup-close:hover {
	background: #f3f4f6;
	transform: rotate(90deg);
}

.ticket-popup-close svg {
	width: 1.5rem;
	height: 1.5rem;
	color: #111827;
}

.ticket-popup-iframe {
	width: 100%;
	height: 100%;
	border: none;
}

.ticket-popup-loading {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

.ticket-popup-spinner {
	width: 3rem;
	height: 3rem;
	border: 3px solid #e5e7eb;
	border-top-color: #CE9826;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 768px) {
	.ticket-popup {
		height: 95vh;
		max-width: 100%;
		border-radius: 0;
	}
	
	.ticket-popup-header {
		padding: 0.75rem;
	}
	
	.ticket-popup-title {
		font-size: 1rem;
	}
}

