.tep-root,
.tep-root * {
	box-sizing: border-box;
}

.tep-root[hidden] {
	display: none !important;
}

body.tep-popup-open {
	overflow: hidden;
}

.tep-root {
	--tep-accent: #6d4aff;
	--tep-bg: #ffffff;
	--tep-text: #17151f;
	--tep-overlay: rgba(21, 19, 28, 0.72);
	--tep-width: 560px;
	--tep-radius: 24px;
	position: relative;
	z-index: 999999;
	font-family: inherit;
}

.tep-overlay {
	position: fixed;
	inset: 0;
	background: var(--tep-overlay);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	opacity: 0;
	transition: opacity 220ms ease;
}

.tep-overlay--transparent {
	background: transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.tep-dialog {
	position: fixed;
	top: 50%;
	left: 50%;
	width: min(var(--tep-width), calc(100vw - 40px));
	max-height: min(82vh, 760px);
	overflow: auto;
	color: var(--tep-text);
	background: var(--tep-bg);
	border: 1px solid rgba(23, 21, 31, 0.1);
	border: 1px solid color-mix(in srgb, var(--tep-text) 10%, transparent);
	border-radius: var(--tep-radius);
	box-shadow: 0 32px 90px rgba(13, 10, 23, 0.32), 0 4px 18px rgba(13, 10, 23, 0.12);
	opacity: 0;
	transform: translate(-50%, calc(-50% + 18px)) scale(0.98);
	transition: opacity 220ms ease, transform 280ms cubic-bezier(0.2, 0.75, 0.25, 1);
	pointer-events: none;
}

.tep-accent-line {
	height: 6px;
	background: var(--tep-accent);
	background: linear-gradient(90deg, var(--tep-accent), color-mix(in srgb, var(--tep-accent) 55%, white));
}

.tep-dialog-inner {
	padding: clamp(28px, 5vw, 48px);
}

.tep-close {
	position: absolute;
	top: 18px;
	right: 18px;
	display: grid;
	width: 40px;
	height: 40px;
	padding: 0;
	place-items: center;
	color: var(--tep-text);
	background: rgba(23, 21, 31, 0.07);
	background: color-mix(in srgb, var(--tep-text) 7%, transparent);
	border: 0;
	border-radius: 999px;
	font: inherit;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	transition: background 160ms ease, transform 160ms ease;
}

.tep-close:hover {
	background: rgba(23, 21, 31, 0.13);
	background: color-mix(in srgb, var(--tep-text) 13%, transparent);
	transform: rotate(5deg);
}

.tep-close:focus-visible,
.tep-button:focus-visible,
.tep-launcher:focus-visible {
	outline: 3px solid var(--tep-accent);
	outline: 3px solid color-mix(in srgb, var(--tep-accent) 55%, white);
	outline-offset: 3px;
}

.tep-eyebrow {
	margin: 0 52px 12px 0;
	color: var(--tep-accent);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.12em;
	line-height: 1.4;
	text-transform: uppercase;
}

.tep-title {
	margin: 0 50px 18px 0;
	color: var(--tep-text);
	font-family: inherit;
	font-size: clamp(30px, 5vw, 46px);
	font-weight: 750;
	letter-spacing: -0.04em;
	line-height: 1.04;
}

.tep-content {
	color: var(--tep-text);
	color: color-mix(in srgb, var(--tep-text) 76%, transparent);
	font-size: 17px;
	line-height: 1.65;
}

.tep-content > :first-child {
	margin-top: 0;
}

.tep-content > :last-child {
	margin-bottom: 0;
}

.tep-content a {
	color: var(--tep-accent);
}

.tep-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 30px;
}

.tep-button {
	display: inline-flex;
	min-height: 46px;
	padding: 11px 20px;
	align-items: center;
	justify-content: center;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.tep-button:hover {
	transform: translateY(-2px);
}

.tep-button--primary {
	color: #fff !important;
	background: var(--tep-accent);
	box-shadow: 0 10px 24px rgba(109, 74, 255, 0.28);
	box-shadow: 0 10px 24px color-mix(in srgb, var(--tep-accent) 28%, transparent);
}

.tep-button--secondary {
	color: var(--tep-text) !important;
	background: transparent;
	border-color: rgba(23, 21, 31, 0.18);
	border-color: color-mix(in srgb, var(--tep-text) 18%, transparent);
}

.tep-launcher {
	position: fixed;
	right: max(20px, env(safe-area-inset-right));
	bottom: max(20px, env(safe-area-inset-bottom));
	display: flex;
	min-height: 52px;
	max-width: min(320px, calc(100vw - 40px));
	padding: 8px 12px 8px 8px;
	align-items: center;
	gap: 10px;
	color: var(--tep-text);
	background: var(--tep-bg);
	border: 1px solid rgba(23, 21, 31, 0.1);
	border: 1px solid color-mix(in srgb, var(--tep-text) 10%, transparent);
	border-radius: 999px;
	box-shadow: 0 18px 45px rgba(13, 10, 23, 0.2), 0 3px 12px rgba(13, 10, 23, 0.1);
	font: inherit;
	font-size: 14px;
	font-weight: 750;
	line-height: 1.2;
	cursor: pointer;
	opacity: 0;
	transform: translateY(18px) scale(0.96);
	transition: opacity 220ms ease, transform 280ms cubic-bezier(0.2, 0.75, 0.25, 1), box-shadow 160ms ease;
	pointer-events: none;
}

.tep-launcher:hover {
	box-shadow: 0 22px 55px rgba(13, 10, 23, 0.25), 0 3px 12px rgba(13, 10, 23, 0.1);
	transform: translateY(-2px) scale(1);
}

.tep-launcher-icon {
	display: grid;
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	place-items: center;
	color: #fff;
	background: var(--tep-accent);
	border-radius: 50%;
}

.tep-launcher-dot {
	width: 8px;
	height: 8px;
	flex: 0 0 8px;
	background: var(--tep-accent);
	border-radius: 50%;
	box-shadow: 0 0 0 5px rgba(109, 74, 255, 0.13);
	box-shadow: 0 0 0 5px color-mix(in srgb, var(--tep-accent) 13%, transparent);
}

.tep-root.is-open .tep-overlay {
	opacity: 1;
}

.tep-root.is-open .tep-dialog {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
	pointer-events: auto;
}

.tep-root.is-minimized .tep-dialog,
.tep-root.is-minimized .tep-overlay {
	visibility: hidden;
}

.tep-root.is-minimized .tep-launcher {
	color: var(--tep-text) !important;
	background: var(--tep-bg) !important;
	border-color: rgba(23, 21, 31, 0.1) !important;
	border-color: color-mix(in srgb, var(--tep-text) 10%, transparent) !important;
	box-shadow: none !important;
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

.tep-root.is-minimized .tep-launcher-icon {
	color: #fff !important;
	background: var(--tep-accent) !important;
}

.tep-root.is-minimized .tep-launcher-dot {
	background: var(--tep-accent) !important;
	box-shadow: none !important;
}

@media (max-width: 600px) {
	.tep-dialog {
		width: calc(100vw - 24px);
		max-height: calc(100dvh - 24px);
		border-radius: min(var(--tep-radius), 20px);
	}

	.tep-dialog-inner {
		padding: 28px 24px 26px;
	}

	.tep-close {
		top: 13px;
		right: 13px;
	}

	.tep-title {
		font-size: 32px;
	}

	.tep-content {
		font-size: 16px;
	}

	.tep-actions {
		flex-direction: column;
	}

	.tep-button {
		width: 100%;
	}

	.tep-launcher {
		right: max(12px, env(safe-area-inset-right));
		bottom: max(12px, env(safe-area-inset-bottom));
	}
}

@media (prefers-reduced-motion: reduce) {
	.tep-overlay,
	.tep-dialog,
	.tep-close,
	.tep-button,
	.tep-launcher {
		transition-duration: 0.01ms !important;
	}
}
