/* WooCommerce Popup Checkout - Frontend CSS */
:root {
	--wpc-primary: #1e1e1e;
	--wpc-overlay: rgba(0, 0, 0, 0.7);
	--wpc-modal-bg: #ffffff;
	--wpc-border-radius: 12px;
	--wpc-modal-width: 800px;
}

#wpc-popup-wrapper {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.3s ease;
}

#wpc-popup-wrapper.wpc-popup-hidden {
	opacity: 0;
	pointer-events: none;
	visibility: hidden;
}

.wpc-popup-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--wpc-overlay);
}

.wpc-popup-container {
	position: relative;
	background: var(--wpc-modal-bg);
	width: 90%;
	max-width: var(--wpc-modal-width);
	max-height: 90vh;
	border-radius: var(--wpc-border-radius);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	z-index: 10;
}

.wpc-popup-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: none;
	border: none;
	font-size: 32px;
	cursor: pointer;
	color: #666;
	line-height: 1;
	z-index: 100;
	transition: transform 0.2s;
}

.wpc-popup-close:hover {
	transform: scale(1.1);
	color: #000;
}

.wpc-popup-content {
	flex: 1;
	overflow-y: auto;
	padding: 40px;
	scrollbar-width: thin;
}

/* Animations */
.wpc-animate-fade .wpc-popup-container { transform: translateY(0); opacity: 1; }
.wpc-popup-hidden .wpc-popup-container { transform: translateY(20px); opacity: 0; }

.wpc-animate-slide .wpc-popup-container { transform: translateY(0); opacity: 1; }
.wpc-popup-hidden.wpc-animate-slide .wpc-popup-container { transform: translateY(100vh); }

.wpc-animate-scale .wpc-popup-container { transform: scale(1); opacity: 1; }
.wpc-popup-hidden.wpc-animate-scale .wpc-popup-container { transform: scale(0.8); opacity: 0; }

.wpc-animate-rotate .wpc-popup-container { transform: rotate(0); opacity: 1; }
.wpc-popup-hidden.wpc-animate-rotate .wpc-popup-container { transform: rotate(10deg) scale(0.9); opacity: 0; }

/* Loader */
.wpc-loader {
	border: 3px solid #f3f3f3;
	border-top: 3px solid var(--wpc-primary);
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin: 50px auto;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* WooCommerce Checkbox Override */
.wpc-custom-checkbox input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	width: 40px;
	height: 20px;
	background: #ddd;
	border-radius: 10px;
	position: relative;
	cursor: pointer;
	transition: background 0.3s;
}

.wpc-custom-checkbox input[type="checkbox"]:checked {
	background: var(--wpc-primary);
}

.wpc-custom-checkbox input[type="checkbox"]::before {
	content: '';
	position: absolute;
	width: 16px;
	height: 16px;
	background: #fff;
	border-radius: 50%;
	top: 2px;
	left: 2px;
	transition: left 0.3s;
}

.wpc-custom-checkbox input[type="checkbox"]:checked::before {
	left: 22px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.wpc-popup-content { padding: 20px; }
	.wpc-popup-container { width: 95%; max-height: 95vh; }
}
