.gd-wp-overlay {
	--gd-wp-accent: #7a1f3d;
	--gd-wp-accent-dark: #591530;
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(20, 8, 14, 0.55);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease;
	box-sizing: border-box;
}

.gd-wp-overlay.is-visible {
	opacity: 1;
	visibility: visible;
}

.gd-wp-overlay * {
	box-sizing: border-box;
}

.gd-wp-modal {
	position: relative;
	width: 100%;
	max-width: 420px;
	background: #fffaf9;
	border-radius: 18px;
	padding: 40px 32px 32px;
	text-align: center;
	box-shadow: 0 24px 60px rgba(20, 8, 14, 0.35);
	transform: translateY(24px) scale(0.96);
	opacity: 0;
	transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.32s ease;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.gd-wp-overlay.is-visible .gd-wp-modal {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.gd-wp-close {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 34px;
	height: 34px;
	border: none;
	background: transparent;
	font-size: 26px;
	line-height: 1;
	color: #9a8f92;
	cursor: pointer;
	border-radius: 50%;
	transition: background 0.15s ease, color 0.15s ease;
}

.gd-wp-close:hover,
.gd-wp-close:focus-visible {
	background: rgba(122, 31, 61, 0.08);
	color: var(--gd-wp-accent);
	outline: none;
}

.gd-wp-badge {
	font-size: 40px;
	line-height: 1;
	margin-bottom: 12px;
}

.gd-wp-title {
	margin: 0 0 12px;
	font-size: 24px;
	font-weight: 700;
	color: #2a1a1f;
	line-height: 1.3;
}

.gd-wp-text {
	margin: 0 0 24px;
	font-size: 15px;
	line-height: 1.55;
	color: #5c4a4f;
}

.gd-wp-coupon {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	border: 2px dashed var(--gd-wp-accent);
	border-radius: 12px;
	padding: 12px 16px;
	background: rgba(122, 31, 61, 0.05);
	margin-bottom: 8px;
}

.gd-wp-coupon-code {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 1px;
	color: var(--gd-wp-accent-dark);
	overflow-wrap: anywhere;
}

.gd-wp-copy-btn {
	flex-shrink: 0;
	border: none;
	background: var(--gd-wp-accent);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	padding: 10px 16px;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
	white-space: nowrap;
}

.gd-wp-copy-btn:hover,
.gd-wp-copy-btn:focus-visible {
	background: var(--gd-wp-accent-dark);
	outline: none;
}

.gd-wp-copy-btn:active {
	transform: scale(0.97);
}

.gd-wp-copied-msg {
	margin: 0 0 20px;
	font-size: 13px;
	font-weight: 600;
	color: #2f8f4e;
	min-height: 16px;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.gd-wp-copied-msg.is-shown {
	opacity: 1;
}

.gd-wp-shop-btn {
	display: inline-block;
	width: 100%;
	padding: 14px 20px;
	border-radius: 10px;
	background: #2a1a1f;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease;
}

.gd-wp-shop-btn:hover,
.gd-wp-shop-btn:focus-visible {
	background: var(--gd-wp-accent-dark);
	color: #fff;
	outline: none;
}

@media (max-width: 480px) {
	.gd-wp-modal {
		padding: 32px 22px 24px;
		border-radius: 14px;
	}

	.gd-wp-title {
		font-size: 20px;
	}

	.gd-wp-coupon {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}

	.gd-wp-coupon-code {
		font-size: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gd-wp-overlay,
	.gd-wp-modal {
		transition: none;
	}
}
