/*!
 * EX Treatment Builder - popup styles.
 * Everything is scoped under #extb (id specificity) so theme / Elementor kit styles can't leak in.
 * Colors come from CSS variables printed by the plugin (Treatment Builder → Settings → Appearance).
 */

:root {
	--extb-primary: #7b4f5a;
	--extb-primary-text: #fff;
	--extb-bg: #f7f4f2;
	--extb-panel: #fff;
	--extb-text: #26232b;
	--extb-fig-fill: #fff;
	--extb-fig-line: #a49ca8;
	--extb-radius: 14px;
	--extb-logo-h: 34px;
}

html.extb-lock,
html.extb-lock body {
	overflow: hidden !important;
}

/* Default look for the [treatment_builder_button] shortcode (Elementor widget overrides it). */
.extb-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	padding: .85em 1.6em;
	border-radius: 999px;
	background: var(--extb-primary);
	color: var(--extb-primary-text);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: filter .2s, transform .2s;
}
.extb-button:hover,
.extb-button:focus {
	color: var(--extb-primary-text);
	filter: brightness(1.08);
	text-decoration: none;
}
.extb-button__icon { display: inline-flex; line-height: 1; }
.extb-button__icon svg { width: 1em; height: 1em; fill: currentColor; }

/* Elementor widget alignment (prefix_class "extb-align%s-"). */
.extb-align-left .extb-button-wrap { text-align: left; }
.extb-align-center .extb-button-wrap { text-align: center; }
.extb-align-right .extb-button-wrap { text-align: right; }
.extb-align-justify .extb-button { display: flex; width: 100%; }
@media (max-width: 1024px) {
	.extb-align-tablet-left .extb-button-wrap { text-align: left; }
	.extb-align-tablet-center .extb-button-wrap { text-align: center; }
	.extb-align-tablet-right .extb-button-wrap { text-align: right; }
	.extb-align-tablet-justify .extb-button { display: flex; width: 100%; }
}
@media (max-width: 767px) {
	.extb-align-mobile-left .extb-button-wrap { text-align: left; }
	.extb-align-mobile-center .extb-button-wrap { text-align: center; }
	.extb-align-mobile-right .extb-button-wrap { text-align: right; }
	.extb-align-mobile-justify .extb-button { display: flex; width: 100%; }
}

/* ------------------------------------------------------------------ */
/* Reset inside the popup                                              */
/* ------------------------------------------------------------------ */

#extb {
	--extb-border: rgba(38, 35, 43, .12);
	--extb-border: color-mix(in srgb, var(--extb-text) 12%, transparent);
	--extb-border-strong: rgba(38, 35, 43, .28);
	--extb-border-strong: color-mix(in srgb, var(--extb-text) 28%, transparent);
	--extb-muted: rgba(38, 35, 43, .64);
	--extb-muted: color-mix(in srgb, var(--extb-text) 64%, transparent);
	--extb-soft: rgba(123, 79, 90, .08);
	--extb-soft: color-mix(in srgb, var(--extb-primary) 9%, var(--extb-panel));
	--extb-soft-2: color-mix(in srgb, var(--extb-primary) 16%, var(--extb-panel));
	--extb-shadow: 0 10px 40px rgba(20, 16, 24, .14);
	--extb-r: var(--extb-radius);
	--extb-r-sm: calc(var(--extb-radius) * .65);

	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	background: var(--extb-bg);
	color: var(--extb-text);
	font-family: var(--extb-font, inherit);
	font-size: 16px;
	line-height: 1.5;
	font-weight: 400;
	letter-spacing: normal;
	text-align: left;
	opacity: 0;
	transition: opacity .22s ease;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
}
#extb[hidden] { display: none; }
#extb.is-open { opacity: 1; }

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

#extb button {
	-webkit-appearance: none;
	appearance: none;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	margin: 0;
	padding: 0;
	min-height: 0;
	min-width: 0;
	width: auto;
	height: auto;
	font: inherit;
	color: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	text-transform: none;
	text-decoration: none;
	text-shadow: none;
	text-align: inherit;
	cursor: pointer;
	transition: background-color .18s, color .18s, border-color .18s, box-shadow .18s, transform .18s, opacity .18s;
}
#extb button:hover,
#extb button:focus,
#extb button:active { background: none; color: inherit; box-shadow: none; text-decoration: none; }
#extb button:disabled { cursor: not-allowed; }
#extb :focus { outline: none; }
#extb :focus-visible { outline: 2px solid var(--extb-primary); outline-offset: 2px; }
#extb h1, #extb h2, #extb h3, #extb p, #extb ul, #extb ol, #extb li, #extb figure {
	margin: 0;
	padding: 0;
	font-family: inherit;
	color: inherit;
	letter-spacing: normal;
	text-transform: none;
	background: none;
	border: 0;
}
#extb ul, #extb ol { list-style: none; }
#extb li::before, #extb li::marker { content: none; }
#extb a { color: inherit; }
#extb svg { max-width: none; }
#extb img { max-width: 100%; height: auto; border: 0; box-shadow: none; }
#extb label { display: block; margin: 0; padding: 0; font-weight: inherit; font-size: inherit; color: inherit; text-transform: none; letter-spacing: normal; }
#extb input,
#extb textarea {
	font: inherit;
	color: inherit;
	letter-spacing: normal;
	margin: 0;
	max-width: 100%;
	box-shadow: none;
	text-transform: none;
}
#extb [hidden] { display: none !important; }

/* Icons */
#extb svg[aria-hidden] { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ------------------------------------------------------------------ */
/* Shell + header                                                      */
/* ------------------------------------------------------------------ */

#extb .extb__shell {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	position: relative;
}
#extb .extb__header {
	flex: none;
	height: 64px;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 12px;
	padding: 0 20px;
	background: var(--extb-panel);
	border-bottom: 1px solid var(--extb-border);
	position: relative;
	z-index: 6;
}
#extb .extb__hside { display: flex; align-items: center; }
#extb .extb__hside--end { justify-content: flex-end; }
#extb .extb__brand { display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; }
#extb .extb__logo { display: block; height: var(--extb-logo-h); width: auto; max-width: 220px; object-fit: contain; }
#extb .extb__title { font-weight: 600; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#extb .extb__title[data-has-logo] {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
#extb .extb__hbtn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 500;
	color: var(--extb-muted);
}
#extb .extb__hbtn:hover { background: var(--extb-soft); color: var(--extb-text); }
#extb .extb__hbtn svg { width: 18px; height: 18px; }

#extb .extb__main {
	flex: 1;
	min-height: 0;
	position: relative;
	overflow: hidden;
}
#extb .extb__screen { height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* ------------------------------------------------------------------ */
/* Builder layout                                                      */
/* ------------------------------------------------------------------ */

#extb .extb__builder {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
	height: 100%;
	position: relative;
}
#extb .extb__stage {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 0;
	min-width: 0;
	padding: 22px 24px 18px;
}
#extb .extb__toolbar {
	flex: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 14px;
}
#extb .extb__seg {
	display: inline-flex;
	padding: 4px;
	gap: 2px;
	background: var(--extb-panel);
	border: 1px solid var(--extb-border);
	border-radius: 999px;
}
#extb .extb__segbtn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 16px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 500;
	color: var(--extb-muted);
}
#extb .extb__segbtn:hover { color: var(--extb-text); background: var(--extb-soft); }
#extb .extb__segbtn.is-on,
#extb .extb__segbtn.is-on:hover { background: var(--extb-primary); color: var(--extb-primary-text); }
#extb .extb__segcount {
	display: inline-grid;
	place-items: center;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	background: var(--extb-soft-2);
	color: var(--extb-primary);
}
#extb .extb__segbtn.is-on .extb__segcount { background: rgba(255, 255, 255, .25); color: inherit; }

#extb .extb__canvas {
	flex: 1;
	min-height: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 18px 0 6px;
}
#extb .extb__figbox {
	flex: 1;
	height: 100%;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
#extb .extb__figure {
	position: relative;
	width: 240px;
	height: 560px;
	flex: none;
}
#extb .extb__art {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .3s ease;
}
#extb .extb__figure.is-ready .extb__art { opacity: 1; }
#extb .extb__figure[data-view="face"] .extb__art {
	-webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
}
#extb .extb__art svg,
#extb .extb__art img { display: block; width: 100%; height: 100%; object-fit: contain; }
#extb .extb__spots { position: absolute; inset: 0; }

/* Theme the default artwork with the Appearance colors. */
#extb .extb-fig-fill { fill: var(--extb-fig-fill); stroke: var(--extb-fig-line); }
#extb .extb-fig-hair {
	fill: color-mix(in srgb, var(--extb-fig-line) 20%, var(--extb-fig-fill));
	stroke: var(--extb-fig-line);
}
#extb .extb-fig-line { stroke: color-mix(in srgb, var(--extb-fig-line) 60%, var(--extb-fig-fill)); }
#extb .extb-fig-dot { fill: color-mix(in srgb, var(--extb-fig-line) 60%, var(--extb-fig-fill)); }

#extb .extb__rotate {
	flex: none;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--extb-panel);
	border: 1px solid var(--extb-border);
	box-shadow: 0 2px 10px rgba(20, 16, 24, .06);
	color: var(--extb-text);
}
#extb .extb__rotate:hover { border-color: var(--extb-primary); color: var(--extb-primary); background: var(--extb-panel); }
#extb .extb__rotate svg { width: 20px; height: 20px; }

#extb .extb__hint {
	flex: none;
	text-align: center;
	font-size: 13px;
	color: var(--extb-muted);
}

/* ------------------------------------------------------------------ */
/* Hotspots                                                            */
/* ------------------------------------------------------------------ */

#extb .extb-hs {
	position: absolute;
	width: 30px;
	height: 30px;
	margin: -15px 0 0 -15px;
	border-radius: 50%;
	z-index: 1;
}
#extb .extb-hs:hover,
#extb .extb-hs:focus-visible,
#extb .extb-hs.is-active { z-index: 3; }
#extb .extb-hs::before {
	content: "";
	position: absolute;
	inset: -6px;
	border-radius: 50%;
	border: 1.5px solid var(--extb-primary);
	opacity: 0;
	animation: extb-pulse 2.6s ease-out infinite;
	pointer-events: none;
}
#extb .extb-hs.is-selected::before,
#extb .extb-hs--zoom::before { animation: none; }
#extb .extb-hs__dot {
	position: relative;
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: var(--extb-panel);
	border: 1.5px solid var(--extb-primary);
	color: var(--extb-primary);
	box-shadow: 0 3px 10px rgba(20, 16, 24, .16);
	transition: background-color .18s, color .18s, transform .18s;
}
#extb .extb-hs__dot svg { width: 16px; height: 16px; stroke-width: 2.4; }
#extb .extb-hs__dot b { font-size: 13px; font-weight: 700; line-height: 1; }
#extb .extb-hs:hover .extb-hs__dot,
#extb .extb-hs:focus-visible .extb-hs__dot,
#extb .extb-hs.is-active .extb-hs__dot,
#extb .extb-hs.is-selected .extb-hs__dot {
	background: var(--extb-primary);
	color: var(--extb-primary-text);
}
#extb .extb-hs:hover .extb-hs__dot,
#extb .extb-hs.is-active .extb-hs__dot { transform: scale(1.1); }
#extb .extb-hs:focus-visible { outline: none; }
#extb .extb-hs:focus-visible .extb-hs__dot { box-shadow: 0 0 0 3px var(--extb-panel), 0 0 0 5px var(--extb-primary); }
#extb .extb-hs--zoom .extb-hs__dot { border-style: dashed; }
#extb .extb-hs--zoom .extb-hs__dot svg { width: 17px; height: 17px; }

#extb .extb-hs__label {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 9px);
	transform: translate(-50%, 4px);
	padding: 5px 10px;
	border-radius: 7px;
	background: var(--extb-text);
	color: var(--extb-panel);
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity .16s, transform .16s;
}
#extb .extb-hs.is-left .extb-hs__label { left: 0; transform: translate(-6px, 4px); }
#extb .extb-hs.is-right .extb-hs__label { left: auto; right: 0; transform: translate(6px, 4px); }
#extb .extb-hs:hover .extb-hs__label,
#extb .extb-hs:focus-visible .extb-hs__label,
#extb .extb-hs.is-active .extb-hs__label { opacity: 1; transform: translate(-50%, 0); }
#extb .extb-hs.is-left:hover .extb-hs__label,
#extb .extb-hs.is-left:focus-visible .extb-hs__label,
#extb .extb-hs.is-left.is-active .extb-hs__label { transform: translate(-6px, 0); }
#extb .extb-hs.is-right:hover .extb-hs__label,
#extb .extb-hs.is-right:focus-visible .extb-hs__label,
#extb .extb-hs.is-right.is-active .extb-hs__label { transform: translate(6px, 0); }

@keyframes extb-pulse {
	0% { transform: scale(.75); opacity: .55; }
	70% { transform: scale(1.35); opacity: 0; }
	100% { transform: scale(1.35); opacity: 0; }
}

/* ------------------------------------------------------------------ */
/* Side panel                                                          */
/* ------------------------------------------------------------------ */

#extb .extb__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 0;
	background: var(--extb-panel);
	border-left: 1px solid var(--extb-border);
}
#extb .extb__pview {
	display: flex;
	flex-direction: column;
	min-height: 0;
	height: 100%;
}
#extb .extb__phead {
	flex: none;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 26px 26px 14px;
}
#extb .extb__phead--area { display: block; }
#extb .extb__h1 { font-size: 26px; line-height: 1.2; font-weight: 700; }
#extb .extb__h2 { font-size: 20px; line-height: 1.25; font-weight: 700; }
#extb .extb__count { color: var(--extb-muted); font-weight: 500; }
#extb .extb__sub { margin-top: 4px; font-size: 14px; color: var(--extb-muted); }
#extb .extb__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 12px;
	font-size: 14px;
	font-weight: 500;
	color: var(--extb-muted);
}
#extb .extb__back:hover { color: var(--extb-primary); }
#extb .extb__back svg { width: 16px; height: 16px; }
#extb .extb__link {
	font-size: 14px;
	font-weight: 500;
	color: var(--extb-primary);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}
#extb .extb__link:hover { color: var(--extb-primary); text-decoration-thickness: 2px; }
#extb .extb__pbody {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 4px 26px 20px;
	overscroll-behavior: contain;
}
#extb .extb__pfoot {
	flex: none;
	padding: 16px 26px 22px;
	border-top: 1px solid var(--extb-border);
	background: var(--extb-panel);
}

#extb .extb__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 14px;
	padding: 48px 10px;
	color: var(--extb-muted);
	font-size: 15px;
}
#extb .extb__emptyicon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--extb-soft);
	color: var(--extb-primary);
}
#extb .extb__emptyicon svg { width: 24px; height: 24px; }

/* Selected groups */
#extb .extb-group { padding: 14px 0 12px; border-bottom: 1px solid var(--extb-border); }
#extb .extb-group:last-child { border-bottom: 0; }
#extb .extb-group__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
#extb .extb-group__name { font-weight: 600; font-size: 15px; }
#extb .extb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
#extb .extb-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px 6px 5px 12px;
	border-radius: 999px;
	background: var(--extb-soft);
	border: 1px solid var(--extb-soft-2);
	font-size: 13.5px;
	line-height: 1.3;
}
#extb .extb-chip button {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	color: var(--extb-muted);
}
#extb .extb-chip button:hover { background: var(--extb-soft-2); color: var(--extb-text); }
#extb .extb-chip button svg { width: 13px; height: 13px; stroke-width: 2.4; }

/* Concern pills */
#extb .extb-pills { display: flex; flex-wrap: wrap; gap: 9px; padding-bottom: 4px; }
#extb .extb-pills li { display: block; }
#extb .extb-pill {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 9px 15px 9px 10px;
	border: 1px solid var(--extb-border-strong);
	border-radius: 999px;
	background: var(--extb-panel);
	font-size: 14.5px;
	line-height: 1.25;
	cursor: pointer;
	user-select: none;
	transition: border-color .15s, background-color .15s, box-shadow .15s;
}
#extb .extb-pill:hover { border-color: var(--extb-primary); }
#extb .extb-pill input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}
#extb .extb-pill__box {
	display: grid;
	place-items: center;
	width: 19px;
	height: 19px;
	border-radius: 50%;
	border: 1.5px solid var(--extb-border-strong);
	color: transparent;
	flex: none;
	transition: background-color .15s, border-color .15s, color .15s;
}
#extb .extb-pill__box svg { width: 12px; height: 12px; stroke-width: 3; }
#extb .extb-pill.is-checked {
	border-color: var(--extb-primary);
	background: var(--extb-soft);
	box-shadow: inset 0 0 0 1px var(--extb-primary);
}
#extb .extb-pill.is-checked .extb-pill__box {
	background: var(--extb-primary);
	border-color: var(--extb-primary);
	color: var(--extb-primary-text);
}
#extb .extb-pill input:focus-visible + .extb-pill__box { box-shadow: 0 0 0 3px var(--extb-panel), 0 0 0 5px var(--extb-primary); }

/* Buttons */
#extb .extb__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 50px;
	padding: 12px 24px;
	border-radius: var(--extb-r-sm);
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	border: 1.5px solid transparent;
}
#extb .extb__btn--block { display: flex; width: 100%; }
#extb .extb__btn--primary { background: var(--extb-primary); color: var(--extb-primary-text); }
#extb .extb__btn--primary:hover,
#extb .extb__btn--primary:focus { background: var(--extb-primary); color: var(--extb-primary-text); filter: brightness(1.1); }
#extb .extb__btn--primary:disabled { opacity: .4; filter: none; }
#extb .extb__btn--ghost { background: var(--extb-panel); color: var(--extb-text); border-color: var(--extb-border-strong); }
#extb .extb__btn--ghost:hover,
#extb .extb__btn--ghost:focus { background: var(--extb-soft); color: var(--extb-text); border-color: var(--extb-primary); }
#extb .extb__btn svg { width: 18px; height: 18px; }
#extb .extb__btn.is-busy { position: relative; color: transparent; }
#extb .extb__btn.is-busy::after {
	content: "";
	position: absolute;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2.5px solid var(--extb-primary-text);
	border-right-color: transparent;
	animation: extb-spin .7s linear infinite;
}
@keyframes extb-spin { to { transform: rotate(360deg); } }

/* Mobile bottom bar + sheet bits (hidden on desktop) */
#extb .extb__mbar,
#extb .extb__scrim,
#extb .extb__sheet-close { display: none; }

/* ------------------------------------------------------------------ */
/* Intro                                                               */
/* ------------------------------------------------------------------ */

#extb .extb__intro {
	position: absolute;
	inset: 0;
	z-index: 8;
	display: grid;
	place-items: center;
	padding: 24px;
	background: rgba(247, 244, 242, .72);
	background: color-mix(in srgb, var(--extb-bg) 70%, transparent);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	animation: extb-fade .3s ease;
}
#extb .extb__introcard {
	width: 100%;
	max-width: 470px;
	padding: 36px 34px 32px;
	border-radius: var(--extb-r);
	background: var(--extb-panel);
	box-shadow: var(--extb-shadow);
	text-align: center;
	animation: extb-rise .35s ease;
}
#extb .extb__lead { margin-top: 10px; color: var(--extb-muted); font-size: 15.5px; }
#extb .extb__steps { display: grid; gap: 10px; margin: 24px 0 26px; text-align: left; }
#extb .extb__steps li {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 13px 16px;
	border-radius: var(--extb-r-sm);
	background: var(--extb-bg);
	font-size: 15px;
}
#extb .extb__stepnum {
	flex: none;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--extb-panel);
	color: var(--extb-primary);
	font-weight: 700;
	font-size: 13px;
	border: 1px solid var(--extb-soft-2);
}
@keyframes extb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes extb-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ */
/* Form + done                                                         */
/* ------------------------------------------------------------------ */

#extb .extb__card {
	width: 100%;
	max-width: 560px;
	margin: 0 auto;
	padding: 40px 24px 56px;
}
#extb .extb__card--center { text-align: center; padding-top: 72px; }
#extb .extb__formscreen .extb__h1,
#extb .extb__formscreen .extb__lead { text-align: center; }

#extb .extb__summary {
	margin: 24px 0 22px;
	padding: 16px 18px;
	border-radius: var(--extb-r-sm);
	background: var(--extb-panel);
	border: 1px solid var(--extb-border);
	font-size: 14px;
}
#extb .extb__summaryhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; font-weight: 600; }
#extb .extb__summary ul { display: grid; gap: 4px; color: var(--extb-muted); }
#extb .extb__summary b { color: var(--extb-text); font-weight: 600; }

#extb .extb__form { display: grid; gap: 16px; }
#extb .extb__row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#extb .extb-field label { margin-bottom: 6px; font-size: 14px; font-weight: 600; }
#extb .extb-req { color: #c0392b; }
#extb .extb-field input[type="text"],
#extb .extb-field input[type="email"],
#extb .extb-field input[type="tel"],
#extb .extb-field textarea {
	display: block;
	width: 100%;
	min-height: 50px;
	padding: 12px 14px;
	border: 1px solid var(--extb-border-strong);
	border-radius: var(--extb-r-sm);
	background: var(--extb-panel);
	color: var(--extb-text);
	font-size: 16px; /* prevents iOS zoom */
	line-height: 1.4;
	outline: none;
	transition: border-color .15s, box-shadow .15s;
}
#extb .extb-field textarea { min-height: 96px; resize: vertical; }
#extb .extb-field input::placeholder,
#extb .extb-field textarea::placeholder { color: var(--extb-muted); opacity: .7; }
#extb .extb-field input:focus,
#extb .extb-field textarea:focus {
	border-color: var(--extb-primary);
	box-shadow: 0 0 0 3px var(--extb-soft-2);
}
#extb .extb-field.has-error input,
#extb .extb-field.has-error textarea { border-color: #c0392b; }
#extb .extb-field__err { margin-top: 5px; font-size: 13px; color: #c0392b; }
#extb .extb-field__err:empty { display: none; }

#extb .extb-field .extb-check { display: flex; align-items: flex-start; gap: 11px; margin: 0; cursor: pointer; font-size: 13.5px; line-height: 1.45; color: var(--extb-muted); font-weight: 400; }
#extb .extb-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
#extb .extb-check__box {
	flex: none;
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	border-radius: 5px;
	border: 1.5px solid var(--extb-border-strong);
	background: var(--extb-panel);
	color: transparent;
}
#extb .extb-check__box svg { width: 13px; height: 13px; stroke-width: 3; }
#extb .extb-check input:checked + .extb-check__box { background: var(--extb-primary); border-color: var(--extb-primary); color: var(--extb-primary-text); }
#extb .extb-check input:focus-visible + .extb-check__box { box-shadow: 0 0 0 3px var(--extb-panel), 0 0 0 5px var(--extb-primary); }
#extb .extb-field.has-error .extb-check__box { border-color: #c0392b; }

#extb .extb__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
#extb .extb__formerr {
	padding: 11px 14px;
	border-radius: var(--extb-r-sm);
	background: #fdecea;
	color: #a1281b;
	font-size: 14px;
}
#extb .extb__privacy {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 8px;
	font-size: 13px;
	color: var(--extb-muted);
	text-align: center;
}
#extb .extb__privacy svg { width: 15px; height: 15px; margin-top: 2px; }
#extb .extb__submit { margin-top: 4px; min-height: 54px; font-size: 16px; }

#extb .extb__doneicon {
	display: grid;
	place-items: center;
	width: 76px;
	height: 76px;
	margin: 0 auto 24px;
	border-radius: 50%;
	background: var(--extb-soft-2);
	color: var(--extb-primary);
	animation: extb-rise .4s ease;
}
#extb .extb__doneicon svg { width: 36px; height: 36px; stroke-width: 2.6; }
#extb .extb__donetext { max-width: 460px; margin: 12px auto 0; }
#extb .extb__donebtns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
#extb .extb__donebtns .extb__btn { min-width: 180px; }

/* ------------------------------------------------------------------ */
/* Confirm + toast                                                     */
/* ------------------------------------------------------------------ */

#extb .extb__confirm {
	position: absolute;
	inset: 0;
	z-index: 20;
	display: grid;
	place-items: center;
	padding: 20px;
	background: rgba(20, 16, 24, .45);
	animation: extb-fade .18s ease;
}
#extb .extb__confirmcard {
	width: 100%;
	max-width: 400px;
	padding: 30px 28px 26px;
	border-radius: var(--extb-r);
	background: var(--extb-panel);
	box-shadow: var(--extb-shadow);
	text-align: center;
	animation: extb-rise .22s ease;
}
#extb .extb__confirmcard p { margin-top: 10px; color: var(--extb-muted); font-size: 15px; }
#extb .extb__confirmcard p:empty { display: none; }
#extb .extb__confirmbtns { display: flex; gap: 10px; margin-top: 24px; }
#extb .extb__confirmbtns .extb__btn { flex: 1; padding-left: 14px; padding-right: 14px; }

#extb .extb__toast {
	position: absolute;
	left: 50%;
	bottom: 28px;
	z-index: 15;
	padding: 11px 18px;
	border-radius: 999px;
	background: var(--extb-text);
	color: var(--extb-panel);
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	opacity: 0;
	transform: translate(-50%, 10px);
	pointer-events: none;
	transition: opacity .2s, transform .2s;
}
#extb .extb__toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------------ */
/* Tablet + mobile                                                     */
/* ------------------------------------------------------------------ */

@media (max-width: 899px) {
	#extb .extb__header { height: 56px; padding: 0 10px; }
	#extb .extb__hbtn { padding: 8px 10px; }
	#extb .extb__title { font-size: 16px; }

	#extb .extb__builder { grid-template-columns: minmax(0, 1fr); }
	#extb .extb__stage { padding: 14px 12px 84px; }
	#extb .extb__toolbar { gap: 8px; }
	#extb .extb__segbtn { padding: 7px 13px; font-size: 13.5px; }
	#extb .extb__canvas { padding-top: 12px; gap: 2px; }
	#extb .extb__rotate { width: 38px; height: 38px; }
	#extb .extb__hint { font-size: 12.5px; }

	#extb .extb__mbar {
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 4;
		display: flex;
		gap: 10px;
		padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
		background: var(--extb-panel);
		border-top: 1px solid var(--extb-border);
	}
	#extb .extb__mbar .extb__btn { flex: 1; min-height: 48px; padding: 10px 12px; font-size: 14.5px; }
	#extb .extb__mcount {
		display: inline-grid;
		place-items: center;
		min-width: 22px;
		height: 22px;
		margin-left: 2px;
		padding: 0 6px;
		border-radius: 999px;
		background: var(--extb-primary);
		color: var(--extb-primary-text);
		font-size: 12px;
	}

	#extb .extb__scrim {
		display: block;
		position: absolute;
		inset: 0;
		z-index: 9;
		background: rgba(20, 16, 24, .4);
		opacity: 0;
		pointer-events: none;
		transition: opacity .25s;
	}
	#extb.is-sheet .extb__scrim { opacity: 1; pointer-events: auto; }

	#extb .extb__panel {
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 10;
		height: min(84%, 680px);
		border-left: 0;
		border-radius: 20px 20px 0 0;
		box-shadow: 0 -10px 40px rgba(20, 16, 24, .18);
		transform: translateY(105%);
		transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .3s;
		visibility: hidden;
	}
	#extb.is-sheet .extb__panel { transform: none; visibility: visible; transition-delay: 0s; }
	#extb .extb__panel::before {
		content: "";
		position: absolute;
		top: 8px;
		left: 50%;
		width: 40px;
		height: 4px;
		margin-left: -20px;
		border-radius: 4px;
		background: var(--extb-border-strong);
	}
	#extb .extb__sheet-close {
		display: grid;
		place-items: center;
		position: absolute;
		top: 14px;
		right: 12px;
		z-index: 2;
		width: 36px;
		height: 36px;
		border-radius: 50%;
		color: var(--extb-muted);
	}
	#extb .extb__sheet-close:hover { background: var(--extb-soft); }
	#extb .extb__sheet-close svg { width: 18px; height: 18px; }
	#extb .extb__phead { padding: 24px 56px 12px 20px; }
	#extb .extb__pbody { padding: 4px 20px 16px; }
	#extb .extb__pfoot { padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); }
	#extb .extb__h1 { font-size: 23px; }
	#extb .extb__h2 { font-size: 19px; }
	#extb .extb-pill { font-size: 14px; padding: 8px 13px 8px 9px; }

	#extb .extb__intro { align-items: end; padding: 12px; }
	#extb .extb__introcard { padding: 28px 22px 22px; }

	#extb .extb__card { padding: 28px 18px 48px; }
	#extb .extb__card--center { padding-top: 56px; }
	#extb .extb__toast { bottom: 88px; }
}

@media (max-width: 480px) {
	#extb .extb__hbtn span { display: none; }
	#extb .extb__row2 { grid-template-columns: 1fr; }
	#extb .extb__steps li { font-size: 14px; padding: 11px 13px; }
}

@media (max-height: 620px) and (min-width: 900px) {
	#extb .extb__stage { padding-top: 12px; padding-bottom: 8px; }
	#extb .extb__canvas { padding-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
	#extb,
	#extb *,
	#extb *::before,
	#extb *::after {
		animation: none !important;
		transition: none !important;
	}
}
