:root {
	--esa-color-available: #4CAF50;
	--esa-color-available-hover: #45a049;
	--esa-color-selected: #2196F3;
	--esa-color-locked: #FF9800;
	--esa-color-sold: #f44336;
	--esa-color-blocked: #9E9E9E;
}

#esa-seat-selector-wrap {
	margin: 20px 0;
	padding: 15px;
	border: 1px solid #eee;
	border-radius: 8px;
	background: #fff;
}

.esa-event-info {
	background: #f9f9f9;
	padding: 15px;
	border-radius: 6px;
	margin-bottom: 20px;
	border-left: 4px solid var(--esa-color-selected);
}

.esa-event-info p {
	margin: 0 0 5px 0;
}

.esa-event-info p:last-child {
	margin: 0;
}

.esa-selector-container {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.esa-zone-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	width: 100%;
	margin-bottom: 10px;
}

.esa-legend-item {
	display: flex;
	align-items: center;
	font-size: 13px;
	background: #f5f5f5;
	padding: 4px 8px;
	border-radius: 12px;
}

.esa-legend-color {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	margin-right: 6px;
	display: inline-block;
}

.esa-map-container {
	flex: 1 1 60%;
	min-height: 400px;
	border: 1px solid #ddd;
	border-radius: 8px;
	overflow: auto;
	background: #fff;
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
}

.esa-map-loading {
	color: #666;
	font-style: italic;
}

.esa-map-svg {
	max-width: 100%;
	height: auto;
}

/* Seats SVG styling */
.esa-seat {
	cursor: pointer;
	transition: all 0.2s ease;
	stroke: #fff;
	stroke-width: 2px;
}

.esa-seat:hover {
	filter: brightness(0.9);
}

.esa-seat[data-status='available'] {
	/* Controlled by inline fill, but we can set default/fallback */
}

.esa-seat.esa-selected,
.esa-seat[data-status='selected'] {
	fill: var(--esa-color-selected) !important;
	box-shadow: 0 0 10px var(--esa-color-selected);
	stroke: #0d47a1;
	stroke-width: 3px;
}

.esa-seat[data-status='locked'] {
	fill: var(--esa-color-locked) !important;
}

.esa-seat[data-status='locked']:not([data-my-lock='true']) {
	cursor: not-allowed;
	opacity: 0.8;
}

.esa-seat[data-status='sold'] {
	fill: var(--esa-color-sold) !important;
	cursor: not-allowed;
	opacity: 0.5;
}

.esa-seat[data-status='blocked'] {
	fill: var(--esa-color-blocked) !important;
	cursor: not-allowed;
	opacity: 0.5;
}

.esa-selection-panel {
	flex: 1 1 30%;
	background: #fafafa;
	border: 1px solid #eee;
	border-radius: 8px;
	padding: 15px;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.esa-selected-info h3 {
	margin-top: 0;
	font-size: 16px;
	border-bottom: 1px solid #ddd;
	padding-bottom: 8px;
	margin-bottom: 12px;
}

.esa-lock-timer {
	background: #fff3e0;
	border-left: 4px solid var(--esa-color-locked);
	padding: 12px;
	border-radius: 4px;
	font-weight: bold;
	color: #e65100;
}

.esa-toast {
	position: fixed;
	bottom: 20px;
	right: 20px;
	padding: 12px 20px;
	background: #333;
	color: #fff;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	z-index: 9999;
	animation: esa-slide-up 0.3s ease-out forwards;
}

.esa-toast-error { background: #f44336; }
.esa-toast-warning { background: #ff9800; color: #000; }
.esa-toast-info { background: #2196F3; }

.esa-toast-hide {
	animation: esa-slide-down 0.3s ease-in forwards;
}

.esa-pulse {
	animation: esa-pulse 1s infinite;
}

@keyframes esa-pulse {
	0% { opacity: 1; }
	50% { opacity: 0.5; }
	100% { opacity: 1; }
}

@keyframes esa-slide-up {
	from { transform: translateY(100%); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

@keyframes esa-slide-down {
	from { transform: translateY(0); opacity: 1; }
	to { transform: translateY(100%); opacity: 0; }
}

@media (max-width: 768px) {
	.esa-selector-container {
		flex-direction: column;
	}
	
	.esa-map-container,
	.esa-selection-panel {
		flex: 1 1 100%;
	}
}
