/**
 * Frontend Popup Styles
 */

.ppi-popup-trigger {
	margin-top: 20px;
	display: inline-block;
	cursor: pointer;
	transition: all 0.3s ease;
}

body.ppi-popup-open {
	overflow: hidden;
}

.ppi-popup-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.85);
	justify-content: center;
	align-items: center;
	padding: 0;
	z-index: 999999;
}

.ppi-popup-overlay.ppi-active {
	display: flex;
}

.ppi-popup-container {
	position: relative;
	width: 100%;
	height: 100%;
}

.ppi-popup-zoom-controls {
    border: none !important;
	position: fixed;
	background: rgba(216, 216, 216, 0.9) !important;
	top: 10px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 6px;
	z-index: 1000000;
}

.ppi-zoom-btn {
	border: none !important;
	background: rgba(216, 216, 216, 0.9) !important;
	border-radius: 4px;
	border-color: #bebebe;
	width: 28px;
	height: 28px;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	padding: 0;
	box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.ppi-zoom-btn:hover {
	background: #ef8a2b !important;
	color: #fff;
}

.ppi-popup-content {
	position: relative;
	width: 100%;
	height: 100%;
	padding: 0;
	max-height: 100vh;
	overflow: auto;
}

.ppi-popup-image {
	display: block;
	max-width: 100%;
	max-height: 100vh;
	height: auto;
	margin: auto;
	transform-origin: center center;
}

@media (max-width: 768px) {
	.ppi-popup-content {
		display: flex;
		align-items: center;
		justify-content: center;
	}
}

.ppi-popup-close {
	position: fixed;
	top: 10px;
	right: 10px;
	border: none !important;
	background: #fff !important;
	border-radius: 50%;
	width: 32px;
	height: 32px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease;
	z-index: 3;
}

.ppi-popup-close:hover {
	background-color: #ef8a2b !important;
}

.ppi-popup-trigger.button {
    background-image: linear-gradient(90deg, var(--e-global-color-edf3b00) 30%, var(--e-global-color-b3d148e) 80%) !important;
    color: black !important;
    border-radius: 50px !important;
}