.msts-seat.available {
	background: var(--zone, var(--msts-available));
	border-color: var(--zone, #cbd5e1);
	color: var(--zone-contrast, #0f172a);
	box-shadow: inset 0 -4px 0 rgb(15 23 42 / 12%);
}

.msts-seat.available:hover:not(:disabled) {
	filter: brightness(1.06) saturate(1.08);
}

/*
 * وضعیت انتخاب باید بر رنگ زون و وضعیت آزاد اولویت قطعی داشته باشد.
 * این انتخابگر از باقی‌ماندن احتمالی کلاس available در کش مرورگر یا قالب جلوگیری می‌کند.
 */
.msts-app .msts-seat.selected,
.msts-app .msts-seat.available.selected {
	background: #22c55e !important;
	border-color: #16a34a !important;
	color: #fff !important;
	box-shadow: inset 0 -4px 0 rgb(21 128 61 / 35%), 0 0 0 3px rgb(34 197 94 / 18%);
	filter: none;
}

.msts-app .msts-seat.selected:hover:not(:disabled) {
	background: #16a34a !important;
	border-color: #15803d !important;
	filter: none;
}

.msts-legend i.selected {
	background: #22c55e;
	border-color: #16a34a;
}

.msts-legend i.disabled,
.msts-seat.disabled {
	background: repeating-linear-gradient(135deg, #cbd5e1 0, #cbd5e1 5px, #e2e8f0 5px, #e2e8f0 10px);
	border-color: #94a3b8;
	color: #475569;
}

.msts-price-range {
	margin-inline-start: auto;
	padding: 7px 12px;
	border: 1px solid #dbe4ef;
	border-radius: 10px;
	background: #f8fafc;
	color: #334155;
	white-space: nowrap;
}

.msts-price-range b {
	color: #172033;
}

.msts-event-inline-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px 18px;
	width: 100%;
	margin-top: 1px;
}

.msts-event-hero .msts-event-inline-actions button {
	position: relative;
	align-self: auto;
	margin: 0;
	padding: 2px 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--msts-primary);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.9;
	cursor: pointer;
	box-shadow: none;
}

.msts-event-hero .msts-event-inline-actions button::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 1px;
	width: 100%;
	height: 1px;
	background: currentColor;
	opacity: .28;
	transition: opacity .18s ease;
}

.msts-event-hero .msts-event-inline-actions button:hover::after,
.msts-event-hero .msts-event-inline-actions button:focus-visible::after {
	opacity: 1;
}

.msts-event-details-modal[hidden] {
	display: none !important;
}

.msts-event-details-modal {
	position: fixed;
	inset: 0;
	z-index: 1000001;
	display: grid;
	place-items: center;
	padding: 22px;
	background: rgb(2 6 23 / 78%);
	backdrop-filter: blur(5px);
}

.msts-event-details-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(720px, 100%);
	max-height: min(82vh, 760px);
	overflow: hidden;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 28px 90px rgb(2 6 23 / 35%);
	outline: none;
}

.msts-event-details-card header {
	padding: 24px 28px 18px;
	border-bottom: 1px solid #eef2f7;
	background: linear-gradient(180deg, #f8fafc, #fff);
}

.msts-event-details-card header span {
	display: block;
	margin-bottom: 5px;
	color: var(--msts-primary);
	font-size: 12px;
	font-weight: 800;
}

.msts-event-details-card h3 {
	margin: 0;
	padding-left: 40px;
	color: #0f172a;
	font-size: clamp(20px, 3vw, 27px);
	line-height: 1.55;
}

.msts-event-details-content {
	overflow: auto;
	padding: 22px 28px;
	color: #334155;
	font-size: 15px;
	line-height: 2;
	overscroll-behavior: contain;
}

.msts-event-details-content > :first-child {
	margin-top: 0;
}

.msts-event-details-content > :last-child {
	margin-bottom: 0;
}

.msts-event-details-content img,
.msts-event-details-content video {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.msts-event-details-content a {
	color: var(--msts-primary);
}

.msts-event-details-card footer {
	display: flex;
	justify-content: flex-start;
	padding: 14px 28px;
	border-top: 1px solid #eef2f7;
	background: #f8fafc;
}

.msts-event-details-card footer button {
	min-width: 90px;
	padding: 9px 18px;
	border: 0;
	border-radius: 9px;
	background: var(--msts-primary);
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.msts-event-details-close-icon {
	position: absolute;
	top: 17px;
	left: 18px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #e2e8f0;
	color: #334155;
	font: 400 26px/1 sans-serif;
	cursor: pointer;
}

.msts-event-details-dialog-open {
	overflow: hidden;
}

@media (max-width: 680px) {
	.msts-legend {
		gap: 9px 12px;
	}

	.msts-price-range {
		order: 99;
		width: 100%;
		margin: 3px 0 0;
		justify-content: center;
		padding: 9px 12px;
		border-color: #bfdbfe;
		background: #eff6ff;
		font-size: 13px;
	}

	.msts-event-inline-actions {
		gap: 5px 15px;
	}

	.msts-event-details-modal {
		align-items: end;
		padding: 10px;
	}

	.msts-event-details-card {
		width: 100%;
		max-height: 88vh;
		border-radius: 18px 18px 12px 12px;
	}

	.msts-event-details-card header {
		padding: 21px 19px 15px;
	}

	.msts-event-details-card h3 {
		padding-left: 36px;
		font-size: 20px;
	}

	.msts-event-details-content {
		padding: 18px 19px;
		font-size: 14px;
		line-height: 1.95;
	}

	.msts-event-details-card footer {
		padding: 12px 19px calc(12px + env(safe-area-inset-bottom));
	}

	.msts-event-details-card footer button {
		width: 100%;
	}

	.msts-event-details-close-icon {
		top: 14px;
		left: 14px;
	}
}

.msts-registration-closed {
	direction: rtl;
	display: grid;
	grid-template-columns: minmax(240px, 38%) 1fr;
	width: min(980px, 100%);
	margin: 30px auto;
	overflow: hidden;
	border: 1px solid #e2e8f0;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 18px 50px #0f172a14;
	font-family: inherit;
}

.msts-registration-closed-media {
	min-height: 280px;
	background: #e2e8f0;
}

.msts-registration-closed-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.msts-registration-closed-body {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	flex-direction: column;
	padding: clamp(25px, 5vw, 50px);
}

.msts-registration-closed-body > span {
	display: inline-flex;
	padding: 7px 12px;
	border-radius: 999px;
	background: #fee2e2;
	color: #991b1b;
	font-size: 12px;
	font-weight: 800;
}

.msts-registration-closed-body h2 {
	margin: 15px 0 8px;
	color: #0f172a;
	font-size: clamp(22px, 4vw, 34px);
	line-height: 1.55;
}

.msts-registration-closed-body p {
	margin: 0 0 12px;
	color: #334155;
	font-size: 16px;
}

.msts-registration-closed-body small {
	color: #64748b;
}

@media (max-width: 680px) {
	.msts-registration-closed {
		grid-template-columns: 1fr;
		margin: 16px auto;
		border-radius: 17px;
	}

	.msts-registration-closed-media {
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	.msts-registration-closed-body {
		padding: 22px 18px 26px;
	}
}
