.sierexit-root {
	--sierexit-text: #172033;
	--sierexit-muted: #526173;
	--sierexit-border: #d8e1ea;
	--sierexit-soft: #f5f8fb;
	--sierexit-primary: #0f766e;
	--sierexit-primary-dark: #0b5f59;
	--sierexit-blue: #1d4ed8;
	--sierexit-warm: #b45309;
	--sierexit-focus: #f59e0b;
	color: var(--sierexit-text);
	font-family: inherit;
}

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

.sierexit-root *,
.sierexit-root *::before,
.sierexit-root *::after {
	box-sizing: border-box;
}

.sierexit-root {
	align-items: center;
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 18px;
	position: fixed;
	z-index: 999999;
}

.sierexit-backdrop {
	background: rgba(15, 23, 42, 0.58);
	inset: 0;
	opacity: 0;
	position: fixed;
	transition: opacity 160ms ease;
}

.sierexit-dialog {
	background: #ffffff;
	border: 1px solid rgba(216, 225, 234, 0.95);
	border-radius: 8px;
	box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
	max-height: min(86vh, 760px);
	max-width: 680px;
	opacity: 0;
	overflow: auto;
	padding: 22px;
	position: relative;
	transform: translateY(10px) scale(0.985);
	transition: opacity 180ms ease, transform 180ms ease;
	width: 100%;
}

.sierexit-is-open .sierexit-backdrop,
.sierexit-is-open .sierexit-dialog {
	opacity: 1;
}

.sierexit-is-open .sierexit-dialog {
	transform: translateY(0) scale(1);
}

body.sierexit-lock-scroll {
	overflow: hidden;
}

.sierexit-close {
	align-items: center;
	appearance: none;
	background: #ffffff;
	border: 1px solid var(--sierexit-border);
	border-radius: 999px;
	color: var(--sierexit-muted);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 1.25rem;
	font-weight: 700;
	height: 38px;
	justify-content: center;
	line-height: 1;
	position: absolute;
	right: 14px;
	top: 14px;
	transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
	width: 38px;
}

.sierexit-close:hover {
	background: var(--sierexit-soft);
	border-color: var(--sierexit-primary);
	color: var(--sierexit-primary-dark);
}

.sierexit-close:focus-visible,
.sierexit-tab:focus-visible,
.sierexit-fallback-button:focus-visible {
	box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.28);
	outline: 3px solid var(--sierexit-focus);
	outline-offset: 2px;
}

.sierexit-header {
	padding-right: 42px;
}

.sierexit-kicker {
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-radius: 999px;
	color: #7c2d12;
	display: inline-flex;
	font-size: 0.8rem;
	font-weight: 800;
	line-height: 1.4;
	margin: 0 0 10px;
	padding: 4px 9px;
}

.sierexit-title {
	color: var(--sierexit-text);
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.38;
	margin: 0;
}

.sierexit-lead {
	color: var(--sierexit-muted);
	font-size: 0.96rem;
	line-height: 1.72;
	margin: 10px 0 0;
}

.sierexit-tabs {
	background: var(--sierexit-soft);
	border: 1px solid var(--sierexit-border);
	border-radius: 8px;
	display: grid;
	gap: 6px;
	grid-template-columns: 1fr;
	margin-top: 18px;
	padding: 5px;
}

.sierexit-tab {
	appearance: none;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 6px;
	color: var(--sierexit-muted);
	cursor: pointer;
	font: inherit;
	font-size: 0.92rem;
	font-weight: 800;
	line-height: 1.45;
	min-height: 42px;
	padding: 9px 12px;
	text-align: center;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.sierexit-tab:hover {
	color: var(--sierexit-primary-dark);
}

.sierexit-tab.sierexit-is-active {
	background: #ffffff;
	border-color: #cbd8e4;
	box-shadow: 0 4px 14px rgba(23, 32, 51, 0.08);
	color: var(--sierexit-text);
}

.sierexit-panels {
	margin-top: 14px;
}

.sierexit-panel[hidden] {
	display: none !important;
}

.sierexit-panel {
	background: #ffffff;
	border: 1px solid var(--sierexit-border);
	border-radius: 8px;
	padding: 14px;
}

.sierexit-panel .siersal-cta,
.sierexit-panel .sierdiag-cta {
	background: transparent;
	border: 0;
	box-shadow: none;
	margin: 0;
	padding: 0;
}

.sierexit-panel .siersal-cta-body {
	background: linear-gradient(180deg, #f0fdfa, #ffffff);
	border: 1px solid #d6ebe7;
	border-left: 4px solid var(--sierexit-primary);
	border-radius: 8px;
	padding: 16px;
}

.sierexit-panel .sierdiag-cta {
	gap: 12px;
}

.sierexit-panel .sierdiag-cta-content {
	background: linear-gradient(180deg, #f8fafc, #ffffff);
	border: 1px solid var(--sierexit-border);
	border-radius: 8px;
	padding: 16px;
}

.sierexit-panel .sierdiag-cta-button,
.sierexit-panel .siersal-cta-button {
	width: 100%;
}

.sierexit-fallback {
	background: linear-gradient(180deg, #f8fafc, #ffffff);
	border: 1px solid var(--sierexit-border);
	border-radius: 8px;
	display: grid;
	gap: 10px;
	padding: 16px;
}

.sierexit-fallback-title {
	font-size: 1.08rem;
	font-weight: 800;
	line-height: 1.45;
	margin: 0;
}

.sierexit-fallback-text {
	color: var(--sierexit-muted);
	font-size: 0.95rem;
	line-height: 1.7;
	margin: 0;
}

.sierexit-fallback-button {
	align-items: center;
	background: var(--sierexit-primary);
	border: 2px solid var(--sierexit-primary);
	border-radius: 8px;
	color: #ffffff;
	display: inline-flex;
	font-weight: 800;
	justify-content: center;
	line-height: 1.45;
	min-height: 46px;
	padding: 10px 14px;
	text-align: center;
	text-decoration: none;
}

.sierexit-fallback-button:hover {
	background: var(--sierexit-primary-dark);
	border-color: var(--sierexit-primary-dark);
	color: #ffffff;
	text-decoration: none;
}

@media (min-width: 640px) {
	.sierexit-dialog {
		padding: 26px;
	}

	.sierexit-title {
		font-size: 1.55rem;
	}

	.sierexit-tabs {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 639px) {
	.sierexit-root {
		align-items: flex-end;
		padding: 10px;
	}

	.sierexit-dialog {
		border-radius: 8px 8px 0 0;
		max-height: 88vh;
		padding: 18px;
		transform: translateY(24px);
	}

	.sierexit-header {
		padding-right: 38px;
	}

	.sierexit-title {
		font-size: 1.18rem;
	}

	.sierexit-panel {
		padding: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sierexit-backdrop,
	.sierexit-dialog,
	.sierexit-close,
	.sierexit-tab {
		transition: none;
	}
}
