/* ── Overlay ─────────────────────────────────────────────────── */
.epp-popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(0, 0, 0, 0.5);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.epp-popup-overlay.epp-visible {
	opacity: 1;
	visibility: visible;
}


/* ── Popup Container ────────────────────────────────────────── */
.epp-popup-container {
	position: relative;
	width: 90vw;
	max-width: 500px;
	background: #ffffff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: none;
	animation: epp-slide-up 0.35s ease-out;
	padding: 10px;
}

@keyframes epp-slide-up {
	from {
		opacity: 0;
		transform: translateY(30px) scale(0.96);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* ── Close Button ───────────────────────────────────────────── */
.epp-close-btn {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 10;
	width: 28px;
	height: 28px;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.4);
	color: #fff;
	font-size: 0;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
	padding: 0;
}

.epp-close-btn svg {
	width: 12px;
	height: 12px;
}

.epp-close-btn:hover {
	background: rgba(0, 0, 0, 0.65);
}

/* ── Image ──────────────────────────────────────────────────── */
.epp-image-link {
	display: block;
	width: 100%;
	cursor: pointer;
}

.epp-popup-image {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: 10px;
}

/* ── Bottom Bar ─────────────────────────────────────────────── */
.epp-bottom-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 0 0 0;
}

/* ── Coupon Field ───────────────────────────────────────────── */
.epp-coupon-field {
	flex: 1;
	display: flex;
	align-items: center;
	border: 1.5px solid #e0e0e0;
	border-radius: 999px;
	padding: 0 4px 0 18px;
	height: 42px;
	min-width: 0;
	background: #fff;
}

.epp-coupon-code {
	flex: 1;
	font-family: 'Instrument Sans', sans-serif;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0;
	color: #1F2E61;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	user-select: all;
}

.epp-copy-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 0;
	background: transparent;
	color: #2652CF;
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
}

.epp-copy-btn svg {
	width: 18px;
	height: 18px;
	stroke: #2b5ea7;
}

/* ── Purchase Button ────────────────────────────────────────── */
.epp-purchase-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 42px;
	padding: 0 20px;
	font-family: 'Instrument Sans', sans-serif;
	font-size: 16px;
	font-weight: 500;
	color: #fff;
	background: #2652CF;
	border: none;
	border-radius: 21px;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	flex-shrink: 0;
	min-width: 130px;
	max-width: 180px;
	transition: background 0.2s ease, transform 0.15s ease;
}

.epp-purchase-btn:hover {
	background: #1e3faa;
	transform: translateY(-1px);
	color: #fff;
}

.epp-purchase-btn:active {
	transform: translateY(0);
}

/* ── Toast Notification (green checkmark) ────────────────────── */
.epp-toast {
	position: fixed;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%) translateY(20px);
	display: flex;
	align-items: center;
	gap: 10px;
	background: #d4fbe1;
	color: #15803d;
	padding: 14px 32px;
	border-radius: 999px;
	font-size: 16px;
	font-weight: 500;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
	z-index: 100000;
	pointer-events: none;
	white-space: nowrap;
}

.epp-toast svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	color: #16a34a;
}

.epp-toast.epp-toast-show {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 480px) {
	.epp-popup-container {
		width: 92vw;
		max-width: 100%;
		border-radius: 14px;
	}

	.epp-bottom-bar {
		padding: 10px 0 0 0;
		gap: 6px;
	}

	.epp-coupon-field {
		height: 38px;
		padding: 0 2px 0 10px;
	}

	.epp-copy-btn {
		width: 30px;
		height: 30px;
	}

	.epp-purchase-btn {
		height: 38px;
		padding: 0 14px;
		border-radius: 19px;
	}
}
