/* ===== Get Gift Popup — Frontend Styles ===== */

:root {
	--ggp-red: #e8483a;
	--ggp-red-dark: #c93a2e;
	--ggp-gold: #f2a93c;
	--ggp-ink: #2b2b33;
	--ggp-muted: #8a8a92;
}

.ggp-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 0;
	padding-top: 110px;
	background: rgba(0, 0, 0, 0.55);
	overflow-y: auto;
}

.ggp-overlay.ggp-active {
	display: flex;
}

.ggp-box {
	position: relative;
	width: 100%;
	max-width: 400px;
	text-align: center;
	font-family: inherit;
	overflow: visible;
}

.ggp-card {
	position: relative;
	background: #ffffff;
	border-radius: 25px;
	padding: 30px 13px 0;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
	z-index: 2;
	overflow: visible;
	transform: translateY(10px) scale(.97);
	animation: ggp-pop .3s cubic-bezier(.2, .9, .3, 1.2) forwards;
}

@keyframes ggp-pop {
	to { transform: translateY(0) scale(1); }
}

.ggp-close-x {
	position: absolute;
	top: 14px;
	left: 14px;
	background: #f00;
	border: none;
	color: #fff;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	font-size: 25px;
	line-height: 1.3;
	cursor: pointer;
}

.ggp-gift-wrap {
	position: absolute;
	top: -56px;
	left: 50%;
	transform: translateX(-50%);
	width: 90px;
	height: 90px;
	filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.2));
}

.ggp-title {
	color: var(--ggp-red);
	font-size: 17px;
	font-weight: 800;
	margin: 4px 0 10px;
	line-height: 1.5;
}

.ggp-image-wrap {
	margin: 0 auto 14px;
	max-width: 100%;
}

.ggp-image-wrap img.ggp-image {
	width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
	border-radius: 14px;
}

.ggp-discount-wrap {
	margin: 0 0 14px;
}

.ggp-discount-pre {
	font-size: 13px;
	color: var(--ggp-muted);
	margin-bottom: 2px;
}

.ggp-discount-percent {
	font-size: 42px;
	font-weight: 900;
	color: var(--ggp-red);
	line-height: 1.1;
	margin: 2px 0 4px;
}

.ggp-discount-post {
	font-size: 13.5px;
	color: #5a5a62;
}

.ggp-desc {
	margin: 0;
	color: #1f2430;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.9;
}

.ggp-countdown-wrap {
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0px;
}

.ggp-countdown-label {
	font-size: 13px;
	color: var(--ggp-muted);
	font-weight: 500;
}

.ggp-countdown {
	font-size: 24px;
	font-weight: 800;
	color: var(--ggp-red);
	letter-spacing: 1px;
	direction: ltr;
	unicode-bidi: bidi-override;
	background: #fdece9;
	padding: 6px 16px;
	border-radius: 10px;
}

.ggp-form {
	display: flex;
	flex-direction: column;
	gap: 0px;
	margin-top: 0;
}

.ggp-input {
	width: 100%;
	box-sizing: border-box;
	background: #f2f1ee;
	border: 1px solid #cfcac0;
	border-radius: 999px;
	padding: 13px 16px;
	font-size: 14px;
	text-align: center;
	color: #333;
	font-family: inherit;
	outline: none;
	transition: border-color .15s ease, background .15s ease;
}

.ggp-input:focus {
	border-color: var(--ggp-red);
	background: #fff;
}

.ggp-message {
	font-size: 13px;
	min-height: 16px;
}

.ggp-message.ggp-msg-error { color: #d92d2d; }
.ggp-message.ggp-msg-success { color: #1f9d55; }

.ggp-submit-btn {
	width: 100%;
	border: none;
	border-radius: 999px;
	background: var(--ggp-red);
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .3px;
	padding: 14px 18px;
	cursor: pointer;
	font-family: inherit;
	transition: transform .1s ease, background .15s ease;
}

.ggp-submit-btn:hover {
	background: var(--ggp-red-dark);
}

.ggp-submit-btn:active {
	transform: scale(0.98);
}

.ggp-submit-btn[disabled] {
	opacity: .6;
	cursor: default;
}

.ggp-close-link {
	display: inline-block;
	margin-top: 14px;
	background: none;
	border: none;
	color: var(--ggp-ink);
	font-size: 12.5px;
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
	font-family: inherit;
}

/* ----- Decorative confetti (simple shapes around the card) ----- */
.ggp-confetti {
	position: absolute;
	z-index: 1;
	pointer-events: none;
	border-radius: 50%;
}

.ggp-c1 { width: 14px; height: 14px; background: var(--ggp-gold); top: -6px; right: 10%; }
.ggp-c2 { width: 10px; height: 10px; background: var(--ggp-red); top: 30%; left: -14px; }
.ggp-c3 { width: 8px;  height: 8px;  background: var(--ggp-gold); bottom: 15%; right: -10px; }
.ggp-c4 { width: 12px; height: 12px; border: 2px solid var(--ggp-gold); background: transparent; top: 10%; left: 6%; }
.ggp-c5 { width: 16px; height: 16px; border: 2px solid var(--ggp-red); background: transparent; bottom: -6px; left: 20%; }
.ggp-c6 { width: 9px;  height: 9px;  background: #ffd25c; top: 55%; right: -12px; }

@media (max-width: 460px) {
	.ggp-box { max-width: 100%; }
	.ggp-card { padding: 68px 18px 22px; }
	.ggp-countdown { font-size: 20px; }
	.ggp-discount-percent { font-size: 36px; }
}
