/**
 * T3D Promo Popup
 *
 * Every rule is scoped under #t3d-popup. The ID gives us enough specificity to
 * beat Elementor's class based global typography without resorting to
 * !important, and properties are set explicitly rather than inherited so a
 * theme reset cannot leak in.
 */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;700&display=swap');
#t3d-popup {
	--t3d-accent: #7C3AED;
	--t3d-ink: #101010;
	--t3d-serif: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--t3d-radius: 2px;

	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
	font-family: var(--t3d-serif);
	-webkit-font-smoothing: antialiased;
}

#t3d-popup[hidden] {
	display: none;
}

#t3d-popup *,
#t3d-popup *::before,
#t3d-popup *::after {
	box-sizing: border-box;
}

/* ---------- Overlay ---------- */

#t3d-popup .t3d-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(8, 8, 12, 0.62);
	opacity: 0;
	transition: opacity 260ms ease;
}

#t3d-popup.is-visible .t3d-popup__overlay {
	opacity: 1;
}

/* ---------- Dialog shell ---------- */

#t3d-popup .t3d-popup__dialog:focus {
	outline: none;
}

#t3d-popup .t3d-popup__dialog {
	position: relative;
	display: flex;
	width: 100%;
	max-width: 780px;
	max-height: calc(100vh - 48px);
	overflow: hidden;
	background: #ffffff;
	border-radius: var(--t3d-radius);
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
	opacity: 0;
	transform: translateY(14px) scale(0.985);
	transition: opacity 300ms ease, transform 300ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

#t3d-popup.is-visible .t3d-popup__dialog {
	opacity: 1;
	transform: translateY(0) scale(1);
}

/* ---------- Close button ---------- */

#t3d-popup .t3d-popup__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 3;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	border-radius: 50%;
	color: var(--t3d-ink);
	cursor: pointer;
	line-height: 1;
	box-shadow: none;
	transition: background-color 160ms ease, transform 160ms ease;
}

#t3d-popup .t3d-popup__close:hover,
#t3d-popup .t3d-popup__close:focus-visible {
	background: rgba(16, 16, 16, 0.07);
	transform: rotate(90deg);
}

#t3d-popup .t3d-popup__close:focus-visible {
	outline: 2px solid var(--t3d-accent);
	outline-offset: 2px;
}

#t3d-popup .t3d-popup__close svg {
	width: 21px;
	height: 21px;
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
}

/* ---------- Left media column ---------- */

#t3d-popup .t3d-popup__media {
	flex: 0 0 41%;
	position: relative;
	min-height: 100%;
	background: #2a1668;
	overflow: hidden;
}

#t3d-popup .t3d-popup__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	display: block;
	border: 0;
	border-radius: 0;
}

/* ---------- Right content column ---------- */

#t3d-popup .t3d-popup__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0;
	padding: 46px 40px 44px;
	overflow-y: auto;
	text-align: center;
	background: #ffffff;
}

#t3d-popup .t3d-popup__body--full {
	flex-basis: 100%;
}

/* ---------- Headline ---------- */

#t3d-popup .t3d-popup__title {
	margin: 0;
	padding: 0;
	font-family: var(--t3d-serif);
	font-weight: 700;
	color: var(--t3d-ink);
	text-transform: none;
	letter-spacing: -0.01em;
}

#t3d-popup .t3d-popup__title-lead {
	display: block;
	font-size: 27px;
	line-height: 1.24;
}

#t3d-popup .t3d-popup__title-hl {
	display: block;
	margin-top: 2px;
	font-size: 63px;
	line-height: 1.04;
	color: var(--t3d-accent);
	letter-spacing: -0.015em;
}

/* Trailing punctuation stays ink black, as in the reference. */
#t3d-popup .t3d-popup__title-punct {
	color: var(--t3d-ink);
}

/* ---------- Description ---------- */

#t3d-popup .t3d-popup__desc {
	margin: 14px 0 0;
	padding: 0;
	max-width: 24.5em;
	font-family: var(--t3d-serif);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.72;
	color: #1c1c1c;
}

#t3d-popup .t3d-popup__price {
	font-weight: 700;
	color: var(--t3d-ink);
	white-space: nowrap;
}

/* ---------- Countdown ---------- */

#t3d-popup .t3d-popup__countdown {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: center;
	gap: 14px;
	margin: 30px 0 0;
}

#t3d-popup .t3d-popup__unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
}

#t3d-popup .t3d-popup__unit-box {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 64px;
	height: 64px;
	padding: 0 8px;
	border: 2px solid var(--t3d-ink);
	border-radius: var(--t3d-radius);
	background: #ffffff;
}

#t3d-popup .t3d-popup__unit-val {
	font-family: var(--t3d-serif);
	font-size: 33px;
	font-weight: 400;
	line-height: 1;
	color: var(--t3d-ink);
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum";
}

#t3d-popup .t3d-popup__unit-label {
	font-family: var(--t3d-serif);
	font-size: 13.5px;
	font-weight: 400;
	line-height: 1.2;
	color: #1c1c1c;
	text-transform: none;
	letter-spacing: 0;
}

/* ---------- Call to action ---------- */

#t3d-popup .t3d-popup__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 296px;
	min-height: 54px;
	margin: 30px 0 0;
	padding: 12px 28px;
	background: var(--t3d-accent);
	border: 0;
	border-radius: 999px;
	box-shadow: none;
	color: #ffffff;
	font-family: var(--t3d-serif);
	font-size: 21px;
	font-weight: 400;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: filter 170ms ease, transform 170ms ease, box-shadow 170ms ease;
}

#t3d-popup .t3d-popup__cta:hover,
#t3d-popup .t3d-popup__cta:focus-visible {
	color: #ffffff;
	text-decoration: none;
	filter: brightness(1.09);
	transform: translateY(-1px);
	box-shadow: 0 8px 22px rgba(124, 58, 237, 0.34);
}

#t3d-popup .t3d-popup__cta:focus-visible {
	outline: 2px solid var(--t3d-ink);
	outline-offset: 3px;
}

/* ---------- Scroll lock ---------- */

html.t3d-popup-lock,
html.t3d-popup-lock body {
	overflow: hidden;
	touch-action: none;
	overscroll-behavior: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
	#t3d-popup .t3d-popup__title-hl {
		font-size: 54px;
	}

	#t3d-popup .t3d-popup__body {
		padding: 40px 32px 38px;
	}
}

@media (max-width: 680px) {
	#t3d-popup {
		padding: 16px;
	}

	#t3d-popup .t3d-popup__dialog {
		flex-direction: column;
		max-width: 440px;
		max-height: calc(100vh - 32px);
		overflow-y: auto;
	}

	#t3d-popup .t3d-popup__media {
		flex: 0 0 auto;
		width: 100%;
		height: 172px;
		min-height: 172px;
	}

	#t3d-popup .t3d-popup__body {
		padding: 30px 24px 32px;
		overflow: visible;
	}

	#t3d-popup .t3d-popup__close {
		top: 10px;
		right: 10px;
		background: rgba(255, 255, 255, 0.92);
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
	}

	#t3d-popup .t3d-popup__title-lead {
		font-size: 22px;
	}

	#t3d-popup .t3d-popup__title-hl {
		font-size: 47px;
	}

	#t3d-popup .t3d-popup__desc {
		margin-top: 12px;
		font-size: 14.5px;
		line-height: 1.66;
	}

	#t3d-popup .t3d-popup__countdown {
		gap: 10px;
		margin-top: 24px;
	}

	#t3d-popup .t3d-popup__unit-box {
		min-width: 56px;
		height: 56px;
	}

	#t3d-popup .t3d-popup__unit-val {
		font-size: 27px;
	}

	#t3d-popup .t3d-popup__unit-label {
		font-size: 12px;
	}

	#t3d-popup .t3d-popup__cta {
		margin-top: 24px;
		min-height: 50px;
		font-size: 19px;
	}
}

@media (max-width: 400px) {
	#t3d-popup .t3d-popup__countdown {
		gap: 8px;
	}

	#t3d-popup .t3d-popup__unit-box {
		min-width: 48px;
		height: 50px;
		padding: 0 4px;
	}

	#t3d-popup .t3d-popup__unit-val {
		font-size: 23px;
	}

	#t3d-popup .t3d-popup__unit-label {
		font-size: 11px;
	}
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	#t3d-popup .t3d-popup__overlay,
	#t3d-popup .t3d-popup__dialog,
	#t3d-popup .t3d-popup__close,
	#t3d-popup .t3d-popup__cta {
		transition-duration: 1ms;
	}

	#t3d-popup .t3d-popup__dialog {
		transform: none;
	}

	#t3d-popup .t3d-popup__close:hover {
		transform: none;
	}
}
