/**
 * Elementor PDF Preview Pro Styles
 */

/* Container */
.eppp-pdf-preview-wrapper {
	position: relative;
	width: 100%;
	overflow: hidden; /* Ensure no spillover */
	display: block;
}

.eppp-pdf-preview-wrapper iframe,
.eppp-pdf-preview-wrapper object {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

/* Modal Styling */
.eppp-pdf-modal {
	display: none;
	position: fixed;
	z-index: 99999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background-color: rgba(0,0,0,0.8);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.eppp-pdf-modal.eppp-show {
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 1;
}

.eppp-modal-content {
	background-color: #fff;
	position: relative;
	width: 90%;
	height: 90%;
	max-width: 1200px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.3);
	display: flex;
	flex-direction: column;
	border-radius: 4px;
	overflow: hidden;
}

.eppp-modal-close {
	position: absolute;
	top: 10px;
	right: 15px;
	color: #333;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
	z-index: 10;
	line-height: 1;
	background: rgba(255,255,255,0.8);
	padding: 5px 10px;
	border-radius: 50%;
}

.eppp-modal-close:hover {
	color: #000;
	background: #fff;
}

.eppp-modal-body {
	flex: 1;
	width: 100%;
	height: 100%;
}

.eppp-modal-body iframe {
	width: 100%;
	height: 100%;
	border: none;
}

/* Button Trigger */
.eppp-pdf-trigger-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	background-color: #e74c3c;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	transition: all 0.3s ease;
	cursor: pointer;
	border: none;
	font-size: 16px;
}

.eppp-pdf-trigger-btn:hover {
	background-color: #c0392b;
	color: #fff;
}

.eppp-pdf-trigger-btn i {
	margin-right: 8px;
}

/* Thumbnail Mode */
.eppp-thumbnail-wrapper {
	position: relative;
	cursor: pointer;
	display: block;
	max-width: 100%;
}

.eppp-thumbnail-wrapper img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.3s ease;
}

.eppp-thumbnail-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.eppp-thumbnail-wrapper:hover .eppp-thumbnail-overlay {
	opacity: 1;
}

.eppp-thumbnail-icon {
	color: #fff;
	font-size: 48px;
	filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
