/**
 * CartPulse Frontend Styles
 */

.cartpulse-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: cartpulse-fade-in 0.3s ease;
}

@keyframes cartpulse-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

.cartpulse-popup {
	background: #ffffff;
	border-radius: 12px;
	padding: 40px;
	max-width: 440px;
	width: 90%;
	position: relative;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
	animation: cartpulse-slide-up 0.3s ease;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@keyframes cartpulse-slide-up {
	from { transform: translateY(20px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

.cartpulse-popup-close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #999;
	line-height: 1;
	padding: 4px;
}

.cartpulse-popup-close:hover {
	color: #333;
}

.cartpulse-popup-title {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}

.cartpulse-popup-message {
	margin: 0 0 20px;
	font-size: 15px;
	color: #666;
	line-height: 1.5;
}

.cartpulse-popup-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cartpulse-popup-input {
	padding: 12px 16px;
	border: 2px solid #e2e8f0;
	border-radius: 8px;
	font-size: 15px;
	width: 100%;
	box-sizing: border-box;
	transition: border-color 0.2s;
}

.cartpulse-popup-input:focus {
	outline: none;
	border-color: #7c3aed;
}

.cartpulse-popup-button {
	padding: 14px 24px;
	background: #7c3aed;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.2s;
}

.cartpulse-popup-button:hover {
	opacity: 0.9;
}

.cartpulse-popup-button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.cartpulse-popup-gdpr {
	font-size: 13px;
	color: #666;
}

.cartpulse-popup-gdpr label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	cursor: pointer;
}

.cartpulse-popup-gdpr input[type="checkbox"] {
	margin-top: 2px;
	flex-shrink: 0;
}

.cartpulse-popup-success {
	text-align: center;
	font-size: 16px;
	color: #16a34a;
	font-weight: 600;
	padding: 20px 0;
}

/* Responsive */
@media (max-width: 480px) {
	.cartpulse-popup {
		padding: 28px 24px;
		border-radius: 16px 16px 0 0;
		position: fixed;
		bottom: 0;
		max-width: 100%;
		width: 100%;
	}

	.cartpulse-popup-overlay {
		align-items: flex-end;
	}
}
