/* WP Promo Popup - Frontend Styles */

.wppp-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.65);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	padding: 20px;
	box-sizing: border-box;
}

.wppp-overlay.wppp-active {
	opacity: 1;
	visibility: visible;
}

.wppp-popup {
	position: relative;
	background: #fff;
	border-radius: 12px;
	max-width: 560px;
	width: 100%;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	overflow: hidden;
	animation: wppp-slide-in 0.35s ease;
}

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

/* 닫기 버튼 - 배경 없이 X 아이콘만 */
#wppp-overlay .wppp-popup button.wppp-close,
.wppp-overlay .wppp-popup .wppp-close {
	position: absolute !important;
	top: 8px !important;
	right: 8px !important;
	width: auto !important;
	height: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	max-width: none !important;
	max-height: none !important;
	padding: 4px !important;
	margin: 0 !important;
	border: none !important;
	border-radius: 0 !important;
	background: none !important;
	background-color: transparent !important;
	color: #333333 !important;
	cursor: pointer !important;
	z-index: 10 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	flex-shrink: 0 !important;
	line-height: 1 !important;
	font-size: 0 !important;
	font-weight: 400 !important;
	text-decoration: none !important;
	box-shadow: none !important;
	transform: none !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	overflow: visible !important;
}

#wppp-overlay .wppp-popup button.wppp-close:hover,
.wppp-overlay .wppp-popup .wppp-close:hover {
	background: none !important;
	background-color: transparent !important;
	color: #000000 !important;
}

#wppp-overlay .wppp-popup button.wppp-close:focus,
.wppp-overlay .wppp-popup .wppp-close:focus {
	outline: none !important;
}

#wppp-overlay .wppp-popup .wppp-close-icon,
.wppp-overlay .wppp-popup .wppp-close-icon {
	display: block !important;
	width: 28px !important;
	height: 28px !important;
	min-width: 28px !important;
	min-height: 28px !important;
	max-width: 28px !important;
	max-height: 28px !important;
	flex-shrink: 0 !important;
	pointer-events: none !important;
	filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.8)) !important;
}

.wppp-content {
	line-height: 0;
}

.wppp-image-link {
	display: block;
	line-height: 0;
}

.wppp-image {
	display: block;
	width: 100%;
	height: auto;
}

.wppp-footer {
	padding: 12px 20px;
	background: #f5f5f5;
	border-top: 1px solid #e0e0e0;
	text-align: center;
}

.wppp-hide-today {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 14px;
	color: #555;
	user-select: none;
}

.wppp-hide-today input[type="checkbox"] {
	width: 16px;
	height: 16px;
	cursor: pointer;
}

/* 모바일 대응 */
@media (max-width: 600px) {
	.wppp-overlay {
		padding: 15px;
	}

	.wppp-popup {
		max-width: 100%;
		border-radius: 8px;
	}

	#wppp-overlay .wppp-popup button.wppp-close,
	.wppp-overlay .wppp-popup .wppp-close {
		top: 6px !important;
		right: 6px !important;
		padding: 2px !important;
	}

	#wppp-overlay .wppp-popup .wppp-close-icon,
	.wppp-overlay .wppp-popup .wppp-close-icon {
		width: 24px !important;
		height: 24px !important;
		min-width: 24px !important;
		min-height: 24px !important;
		max-width: 24px !important;
		max-height: 24px !important;
	}

	.wppp-footer {
		padding: 10px 15px;
	}

	.wppp-hide-today {
		font-size: 13px;
	}
}
