/* White Dent – Popup Voucher Cadou */
.wdvp-overlay {
	position: fixed;
	inset: 0;
	z-index: 999998;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(12, 22, 58, 0.62);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .35s ease, visibility .35s ease;
}
.wdvp-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.wdvp-modal {
	position: relative;
	width: auto;
	max-width: min(560px, 100%);
	max-height: calc(100vh - 40px);
	max-height: calc(100dvh - 40px);
	border-radius: 14px;
	box-shadow: 0 25px 70px rgba(10, 20, 60, .45), 0 0 0 1px rgba(255, 255, 255, .6);
	background: #f4f5f8;
	transform: translateY(24px) scale(.96);
	transition: transform .4s cubic-bezier(.2, .8, .2, 1);
	outline: none;
}
.wdvp-overlay.is-open .wdvp-modal {
	transform: translateY(0) scale(1);
}
/* animație spre butonul de jos la închidere */
.wdvp-overlay.is-closing .wdvp-modal {
	transform: translateY(45vh) scale(.25);
	transition: transform .4s cubic-bezier(.5, 0, .75, 0);
}

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

.wdvp-img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: calc(100vh - 40px);
	max-height: calc(100dvh - 40px);
	border-radius: 14px;
	margin: 0;
}

.wdvp-close {
	position: absolute;
	top: -14px;
	right: -14px;
	z-index: 2;
	width: 40px;
	height: 40px;
	padding: 0;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #ffffff;
	border-radius: 50%;
	background: #1b2f86;
	color: #ffffff;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(10, 20, 60, .4);
	transition: transform .2s ease, background .2s ease;
}
.wdvp-close:hover,
.wdvp-close:focus-visible {
	background: #12226a;
	transform: rotate(90deg);
	outline: none;
}

/* ---------- Buton jos, centrat ---------- */
.wdvp-tab {
	position: fixed;
	left: 50%;
	bottom: 18px;
	bottom: calc(18px + env(safe-area-inset-bottom, 0px));
	z-index: 999997;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	padding: 11px 26px 11px 22px;
	/* contur animat: interior argintiu + arc bleumarin care se rotește */
	border: 3px solid transparent;
	border-radius: 999px;
	background:
		linear-gradient(180deg, #ffffff 0%, #eef0f5 55%, #dfe3ec 100%) padding-box,
		conic-gradient(from var(--wdvp-a, 0deg), #cfd4df 0deg, #cfd4df 150deg, #7d8fd4 250deg, #1b2f86 330deg, #cfd4df 360deg) border-box;
	animation: wdvp-spin 2.2s linear infinite;
	color: #1b2f86;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 17px;
	font-style: italic;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .3px;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, .85), 0 8px 24px rgba(15, 30, 90, .28);
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 30px);
	transition: opacity .35s ease, visibility .35s ease, transform .35s cubic-bezier(.2, .8, .2, 1), background .25s ease, color .25s ease;
}
.wdvp-tab.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}
.wdvp-tab:hover,
.wdvp-tab:focus-visible {
	background:
		linear-gradient(180deg, #24399a 0%, #1b2f86 100%) padding-box,
		conic-gradient(from var(--wdvp-a, 0deg), #cfd4df 0deg, #cfd4df 150deg, #ffffff 250deg, #9fb0ee 330deg, #cfd4df 360deg) border-box;
	color: #ffffff;
	outline: none;
}

/* unghiul animabil pentru conturul care „se încarcă” */
@property --wdvp-a {
	syntax: "<angle>";
	inherits: false;
	initial-value: 0deg;
}
@keyframes wdvp-spin {
	to { --wdvp-a: 360deg; }
}
.wdvp-tab-ico { flex: 0 0 auto; }

/* sclipire argintie discretă */
.wdvp-tab::after {
	content: "";
	position: absolute;
	top: 0;
	left: -60%;
	width: 40%;
	height: 100%;
	background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .9), transparent);
	transform: skewX(-20deg);
	animation: wdvp-shine 4.5s ease-in-out infinite 1s;
	pointer-events: none;
}
@keyframes wdvp-shine {
	0%, 70% { left: -60%; }
	100% { left: 130%; }
}

body.wdvp-lock { overflow: hidden; }

@media (max-width: 600px) {
	.wdvp-overlay { padding: 26px 14px 14px; }
	.wdvp-close { top: -12px; right: -6px; width: 36px; height: 36px; }
	.wdvp-tab { font-size: 15px; padding: 9px 20px 9px 16px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.wdvp-overlay, .wdvp-modal, .wdvp-tab { transition: none; }
	.wdvp-tab { animation: none; }
	.wdvp-tab::after { animation: none; display: none; }
}
