/**
 * T29 Video Modal Button Widget Styles
 */

/* Button Styles */
.t29-video-modal-button-wrapper {
	display: block;
}

.t29-video-modal-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.3s ease;
	font-weight: 600;
	line-height: 1;
	border: none;
	outline: none;
}

.t29-video-modal-button:focus {
	outline: 2px solid rgba(0, 115, 170, 0.5);
	outline-offset: 2px;
}

.t29-video-modal-button .button-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	color: inherit;
}

.t29-video-modal-button .button-icon i {
	color: inherit;
}

.t29-video-modal-button .button-icon svg {
	fill: currentColor;
	color: inherit;
}

.t29-video-modal-button .button-icon-left {
	margin-right: 8px;
}

.t29-video-modal-button .button-icon-right {
	margin-left: 8px;
}

.t29-video-modal-button .button-text {
	line-height: inherit;
}

/* Modal Styles - Using !important to override SliderRevolution and other theme CSS */
.t29-video-modal {
	display: none !important;
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	max-width: none !important;
	max-height: none !important;
	z-index: 999999 !important;
	overflow: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
	box-sizing: border-box !important;
}

.t29-video-modal.active {
	display: block !important;
}

.t29-video-modal-overlay {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	background-color: rgba(0, 0, 0, 0.9) !important;
	z-index: 1 !important;
	cursor: pointer !important;
}

.t29-video-modal-content {
	position: relative !important;
	width: 90% !important;
	max-width: 1200px !important;
	margin: 50px auto !important;
	z-index: 2 !important;
	box-sizing: border-box !important;
}

.t29-video-modal-close {
	position: absolute !important;
	top: -40px !important;
	right: 0 !important;
	background: transparent !important;
	border: none !important;
	color: #fff !important;
	font-size: 40px !important;
	font-weight: 300 !important;
	line-height: 1 !important;
	cursor: pointer !important;
	padding: 0 !important;
	width: 40px !important;
	height: 40px !important;
	transition: opacity 0.3s ease !important;
	z-index: 3 !important;
	box-shadow: none !important;
	text-shadow: none !important;
}

.t29-video-modal-close:hover,
.t29-video-modal-close:focus {
	opacity: 0.7 !important;
	outline: none !important;
}

.t29-video-modal-video-wrapper {
	position: relative !important;
	width: 100% !important;
	padding-bottom: 56.25% !important; /* 16:9 aspect ratio */
	padding-top: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	background-color: #000 !important;
	overflow: hidden !important;
	height: 0 !important;
	box-sizing: border-box !important;
}

.t29-video-modal-video-wrapper iframe,
.t29-video-modal-video-wrapper video {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	border: none !important;
	max-width: none !important;
	max-height: none !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
	.t29-video-modal-content {
		width: 95% !important;
		margin: 30px auto !important;
	}

	.t29-video-modal-close {
		top: -35px !important;
		font-size: 30px !important;
		width: 30px !important;
		height: 30px !important;
	}
}

/* Editor mode alert styling */
.elementor-alert {
	padding: 15px;
	margin-bottom: 20px;
	border: 1px solid transparent;
	border-radius: 4px;
}

.elementor-alert-warning {
	color: #856404;
	background-color: #fff3cd;
	border-color: #ffeaa7;
}

/* Prevent body scroll when modal is open */
body.t29-video-modal-open {
	overflow: hidden;
}
