/**
 * Agile Ticketing sidebar modal styles.
 */

.sffilm-agile-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sffilm-agile-modal.is-open {
	visibility: visible;
	opacity: 1;
}

/* Overlay */
.sffilm-agile-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
}

/* Slide-in panel */
.sffilm-agile-modal__panel {
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	max-width: 400px;
	height: 100%;
	background: #fff;
	z-index: 10000;
	transform: translateX(100%);
	transition: transform 0.3s ease;
	display: flex;
	flex-direction: column;
    padding-top: 3em;
}

.sffilm-agile-modal.is-open .sffilm-agile-modal__panel {
	transform: translateX(0);
}

/* Close button */
.sffilm-agile-modal__close {
	z-index: 1;
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	background: transparent;
	color: #333;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: background-color 0.15s ease;
}

.sffilm-agile-modal__close:hover {
	background-color: rgba(0, 0, 0, 0.08);
}

/* Iframe */
.sffilm-agile-modal__iframe {
	width: 100%;
	height: 100%;
	border: none;
	flex: 1;
}

/* Mobile: full-width panel */
@media (max-width: 480px) {
	.sffilm-agile-modal__panel {
		max-width: 100%;
	}
}
