/* Smart assistant popup: welcome + 3-step quiz + result (RTL) */
.haveitall-site-popup {
	--abt-popup-navy: var(--color-primary);
	--abt-popup-ink: var(--color-text);
	--abt-popup-orange: var(--color-accent);
	--abt-popup-orange-soft: color-mix(in srgb, var(--color-accent) 14%, #ffffff);
	--abt-popup-line: var(--color-border);
	position: fixed;
	inset: 0;
	z-index: 140;
	display: grid;
	place-items: center;
	padding: 1rem;
	opacity: 0;
	pointer-events: none;
	transition: opacity 220ms ease;
}

.haveitall-site-popup[hidden] {
	display: none !important;
}

.haveitall-site-popup.is-open {
	opacity: 1;
	pointer-events: auto;
}

body.haveitall-site-popup-open {
	overflow: hidden;
}

.haveitall-site-popup__backdrop {
	position: absolute;
	inset: 0;
	border: 0;
	background: rgba(8, 16, 24, 0.56);
	cursor: pointer;
	opacity: 0;
	transition: opacity 220ms ease;
	border-radius: 0;
}

.haveitall-site-popup__dialog {
	position: relative;
	z-index: 1;
	width: min(95vw, 900px);
	max-height: min(92dvh, 860px);
	background: #fff;
	border-radius: 20px;
	border: 1px solid var(--abt-popup-line);
	box-shadow: 0 30px 80px rgba(15, 23, 42, 0.34);
	direction: rtl;
	text-align: right;
	overflow: hidden;
	opacity: 0;
	transform: translateY(14px) scale(0.98);
	transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms ease;
}

.haveitall-site-popup.is-open .haveitall-site-popup__backdrop {
	opacity: 1;
}

.haveitall-site-popup.is-open .haveitall-site-popup__dialog {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.haveitall-site-popup[data-haveitall-popup-layout="content"] .haveitall-site-popup__dialog {
	width: min(95vw, 900px);
}

.haveitall-site-popup__layout {
	display: grid;
	grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
	min-height: 0;
}

.haveitall-site-popup[data-haveitall-popup-layout="split"] .haveitall-site-popup__layout {
	direction: ltr;
}

.haveitall-site-popup[data-haveitall-popup-layout="content"] .haveitall-site-popup__layout {
	grid-template-columns: 1fr;
}

.haveitall-site-popup[data-haveitall-popup-layout="content"] .haveitall-site-popup__visual {
	display: none;
}

.haveitall-site-popup__main {
	order: 2;
	padding: 3rem 1.4rem 1.25rem;
	direction: rtl;
	text-align: right;
	min-height: 430px;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	min-height: 0;
}

.haveitall-site-popup__visual {
	order: 1;
	background: linear-gradient(150deg, var(--color-primary) 0%, var(--color-primary) 55%, var(--color-secondary) 100%);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	min-height: 100%;
}

.haveitall-site-popup__visual img {
	width: 100%;
	height: 100%;
	min-height: 240px;
	object-fit: cover;
	border-radius: 0;
}

.haveitall-site-popup__visual-fallback {
	display: flex;
	gap: 0.55rem;
	font-size: 2rem;
}

.haveitall-site-popup__close {
	position: absolute;
	top: 0.5rem;
	inset-inline-start: 0.5rem;
	z-index: 2;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid rgba(15, 23, 42, 0.12);
	background: #fff;
	color: var(--color-text-muted);
	font-size: 0;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
	padding: 0;
}

.haveitall-site-popup__close-x {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	pointer-events: none;
}

.haveitall-site-popup__view {
	display: none;
}

.haveitall-site-popup__view.is-active {
	display: block;
}

.haveitall-site-popup__view.is-active.is-view-transition {
	animation: haveitallPopupViewIn 220ms ease-out;
}

.haveitall-site-popup__title,
.haveitall-site-popup__quiz-title {
	margin: 0 0 0.45rem;
	font-size: 1.65rem;
	line-height: 1.4;
	font-weight: 700;
	color: var(--abt-popup-navy);
	letter-spacing: -0.02em;
}

.haveitall-site-popup__quiz-title--center,
.haveitall-site-popup__subtitle--center {
	text-align: center;
}

.haveitall-site-popup__subtitle {
	margin: 0;
	color: var(--color-text-muted);
	font-size: 1rem;
	line-height: 1.75;
}

.haveitall-site-popup__badges {
	list-style: none;
	margin: 1.1rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
}

.haveitall-site-popup__badges li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.62rem 0.7rem;
	border-radius: 12px;
	border: 1px solid var(--abt-popup-line);
	background: #fff;
	color: var(--abt-popup-ink);
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.35;
}

.haveitall-site-popup__badge-ico {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-primary);
	flex-shrink: 0;
}

.haveitall-site-popup__badge-ico .haveitall-site-popup__ico {
	display: block;
}

.haveitall-site-popup__actions {
	margin-top: 1.1rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.haveitall-site-popup__actions--single {
	align-items: stretch;
	align-self: end;
}

.haveitall-site-popup__cta,
.haveitall-site-popup__ghost,
.haveitall-site-popup__nav-btn {
	box-sizing: border-box;
	max-width: 100%;
	min-width: 0;
	border: 0;
	border-radius: 11px;
	min-height: 48px;
	padding: 0.62rem 0.95rem;
	font-size: 0.96rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	text-decoration: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	font-family: inherit;
}

.haveitall-site-popup__cta {
	background: var(--abt-popup-orange);
	color: #fff !important;
	box-shadow: 0 8px 20px rgba(242, 113, 28, 0.28);
	transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
	text-decoration: none;
	font-weight: 600;
}

.haveitall-site-popup__cta:hover {
	background: var(--color-accent-hover);
	color: #fff !important;
}

.haveitall-site-popup__cta:active {
	transform: translateY(1px);
	box-shadow: 0 4px 12px rgba(242, 113, 28, 0.24);
	color: #fff !important;
}

.haveitall-site-popup__cta:focus,
.haveitall-site-popup__cta:focus-visible,
.haveitall-site-popup__cta:visited {
	color: #fff !important;
}

.haveitall-site-popup__cta--arrow .haveitall-site-popup__cta-label::after {
	margin-inline-start: 0.4em;
	font-size: 1.05em;
	font-weight: 600;
	transition: transform 0.18s ease;
}

.haveitall-site-popup__cta--arrow:active .haveitall-site-popup__cta-label::after {
	transform: translateX(-2px);
}

.haveitall-site-popup__ghost {
	background: #fff;
	color: var(--abt-popup-navy);
	border: 1.5px solid var(--color-border);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.haveitall-site-popup__ghost:hover {
	border-color: var(--color-border);
}

.haveitall-site-popup__ghost--consult .haveitall-site-popup__consult-ico {
	display: flex;
	align-items: center;
	justify-content: center;
}

.haveitall-site-popup__ghost--consult .haveitall-site-popup__ico,
.haveitall-site-popup__ghost--consult .haveitall-site-popup__consult-ico > svg {
	width: 22px;
	height: 22px;
	color: var(--color-primary);
	flex-shrink: 0;
}

.haveitall-site-popup__dismiss-link {
	margin-top: 0.85rem;
	border: 0;
	background: transparent;
	color: var(--color-text-muted);
	cursor: pointer;
	font-size: 0.95rem;
	text-decoration: none;
	padding: 0;
	display: inline-flex;
	align-items: center;
	gap: 0.32rem;
}

.haveitall-site-popup__dismiss-ico {
	font-size: 1.2em;
	line-height: 1;
	color: var(--color-border);
	transition: transform 0.18s ease;
}

.haveitall-site-popup__dismiss-link:active .haveitall-site-popup__dismiss-ico {
	transform: translateX(-2px);
}

/* Shared progress strip (quiz + post–Q5); circles 1–6 */
.haveitall-site-popup__quiz-progress-area {
	position: sticky;
	top: 0;
	z-index: 4;
	margin-bottom: 0.15rem;
	padding-top: 0;
	padding-bottom: 0;
	background: #fff;
}

.haveitall-site-popup__quiz-progress-area .haveitall-site-popup__progress {
	position: relative;
	top: auto;
	margin: 0 auto 0.35rem;
	padding-top: 0;
	gap: 0.72rem;
	max-width: min(100%, 520px);
}

/* Step progress: numbered circles + track (line runs through circle centers) */
.haveitall-site-popup__progress {
	--haveitall-popup-progress-dot: 32px;
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0 auto 1.1rem;
	gap: 1.15rem;
	padding: 0;
	width: fit-content;
	max-width: min(100%, 420px);
	position: sticky;
	top: 0;
	z-index: 3;
	background: #fff;
	padding-top: 0.15rem;
}

.haveitall-site-popup__progress::before {
	content: "";
	position: absolute;
	inset-block-start: 50%;
	/* From center of first dot to center of last dot (half diameter each side) */
	inset-inline-start: calc(var(--haveitall-popup-progress-dot) / 2);
	inset-inline-end: calc(var(--haveitall-popup-progress-dot) / 2);
	height: 3px;
	margin-block-start: -1px;
	background: var(--color-border);
	border-radius: 2px;
	z-index: 0;
}

.haveitall-site-popup__progress-step {
	z-index: 1;
	width: var(--haveitall-popup-progress-dot);
	height: var(--haveitall-popup-progress-dot);
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--color-border);
	color: var(--color-text-muted);
	font-size: 0.72rem;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.haveitall-site-popup__progress-step.is-active {
	border-color: var(--abt-popup-orange);
	background: var(--abt-popup-orange);
	color: #fff;
	box-shadow: 0 4px 12px rgba(242, 113, 28, 0.35);
}

.haveitall-site-popup__quiz-head {
	margin-bottom: 0.35rem;
	position: static;
	z-index: auto;
	background: #fff;
	border: 0;
	height: fit-content;
	border-radius: 0;
	padding: 0 0 0.15rem;
}

.haveitall-site-popup__view[data-popup-view="quiz"].is-step-transition .haveitall-site-popup__quiz-head,
.haveitall-site-popup__view[data-popup-view="quiz"].is-step-transition .haveitall-site-popup__options,
.haveitall-site-popup__view[data-popup-view="quiz"].is-step-transition .haveitall-site-popup__quiz-nav {
	animation: haveitallPopupStepIn 220ms ease-out;
}

.haveitall-site-popup__view[data-popup-view="quiz"].is-active {
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	align-content: stretch;
	min-height: min(260px, 38vh);
	max-height: min(78vh, 560px);
	height: auto;
	overflow: hidden;
}

.haveitall-site-popup__quiz-title:not(.haveitall-site-popup__quiz-title--center) {
	margin-bottom: 0.2rem;
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--abt-popup-navy);
}

.haveitall-site-popup__quiz-hint {
	margin: 0;
	font-size: 0.9rem;
	color: var(--color-text-muted);
	line-height: 1.5;
}

/* Tablet (unchanged): keep 3 columns for this band only */
@media (min-width: 768px) and (max-width: 1024px) {
	.haveitall-site-popup__options--grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Desktop: 2×2 grid for four options */
@media (min-width: 1025px) {
	.haveitall-site-popup__options--grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.haveitall-site-popup__options--grid {
	display: grid;
	/* grid-template-columns: repeat(3, minmax(0, 1fr)); */
	gap: 0.5rem;
	align-content: start;
	align-self: stretch;
	justify-content: center;
	min-height: 0;
	max-height: 100%;
	overflow: auto;
	padding-inline-end: 0.2rem;
	padding-bottom: 0.35rem;
	scrollbar-width: thin;
}

.haveitall-site-popup__options--grid .haveitall-site-popup__option:last-child:nth-child(odd) {
	grid-column: auto;
}

.haveitall-site-popup__view[data-popup-view="quiz"] .haveitall-site-popup__options::-webkit-scrollbar {
	width: 6px;
}

.haveitall-site-popup__view[data-popup-view="quiz"] .haveitall-site-popup__options::-webkit-scrollbar-thumb {
	background: var(--color-border);
	border-radius: 999px;
}

.haveitall-site-popup__option {
	border-radius: 12px;
	border: 1px solid var(--abt-popup-line);
	background: var(--color-bg);
	color: var(--abt-popup-ink);
	text-align: center;
	padding: 0.7rem 0.6rem 0.65rem;
	cursor: pointer;
	font-weight: 700;
	font-size: 0.88rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 116px;
	gap: 0.4rem;
	transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.haveitall-site-popup__option-ico {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-primary);
	width: 56px;
	height: 56px;
	border-radius: 999px;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid var(--color-border);
}

.haveitall-site-popup__opt-ico {
	width: 40px;
	height: 40px;
	display: block;
}

.haveitall-site-popup__opt-img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	border-radius: 999px;
}

.haveitall-site-popup__opt-img--file {
	object-fit: contain;
	padding: 4px;
	box-sizing: border-box;
}

.haveitall-site-popup__option-txt {
	line-height: 1.35;
}

.haveitall-site-popup__option:hover,
.haveitall-site-popup__option.is-selected {
	border-color: var(--abt-popup-orange);
	background: color-mix(in srgb, var(--color-accent) 8%, #ffffff);
	box-shadow: 0 0 0 1px rgba(242, 113, 28, 0.15);
}

.haveitall-site-popup__nav-btn--next:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}

.haveitall-site-popup__quiz-nav {
	margin-top: 0.45rem;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem;
	align-self: stretch;
	flex-shrink: 0;
	position: sticky;
	bottom: 0;
	background: #fff;
	padding-top: 0.35rem;
	z-index: 2;
}

.haveitall-site-popup__nav-btn--back {
	background: #fff;
	color: var(--abt-popup-navy);
	border: 1.5px solid var(--color-border);
	font-weight: 700;
	transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.haveitall-site-popup__nav-btn--back:hover {
	border-color: var(--color-border);
	background: var(--color-bg);
}

.haveitall-site-popup__nav-btn--back:active {
	transform: translateY(1px);
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.haveitall-site-popup__nav-ico {
	margin-inline-start: 0.2rem;
	font-size: 1.1em;
	color: var(--color-text-muted);
}

/* Result hero: check + confetti */
.haveitall-site-popup__result-hero {
	position: relative;
	display: flex;
	justify-content: center;
	margin: 0 0 0.5rem;
	padding: 0.5rem 0 0.25rem;
}

.haveitall-site-popup__result-check {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--color-primary);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 24px rgba(15, 47, 71, 0.35);
}

.haveitall-site-popup__result-confetti {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.haveitall-site-popup__result-confetti span {
	position: absolute;
	width: 6px;
	height: 6px;
	border-radius: 1px;
	opacity: 0.85;
	transform-origin: center;
	animation-name: haveitallPopupConfettiDrift;
	animation-timing-function: ease-in-out;
	animation-iteration-count: infinite;
	will-change: transform, opacity;
}

.haveitall-site-popup__result-confetti span:nth-child(1) { inset-inline-end: 24%; top: 8%; background: var(--color-accent); animation-duration: 2.2s; animation-delay: -0.2s; }
.haveitall-site-popup__result-confetti span:nth-child(2) { inset-inline-end: 16%; top: 42%; background: var(--color-secondary); animation-duration: 2.8s; animation-delay: -0.9s; }
.haveitall-site-popup__result-confetti span:nth-child(3) { inset-inline-start: 20%; top: 18%; background: var(--color-accent); animation-duration: 2.4s; animation-delay: -0.5s; }
.haveitall-site-popup__result-confetti span:nth-child(4) { inset-inline-start: 12%; top: 48%; background: #2f9e64; animation-duration: 3.0s; animation-delay: -1.1s; }
.haveitall-site-popup__result-confetti span:nth-child(5) { inset-inline-start: 30%; top: 8%; background: var(--color-accent); animation-duration: 2.6s; animation-delay: -0.7s; }
.haveitall-site-popup__result-confetti span:nth-child(6) { inset-inline-end: 32%; top: 20%; background: var(--color-accent); animation-duration: 2.1s; animation-delay: -0.4s; }
.haveitall-site-popup__result-confetti span:nth-child(7) { inset-inline-start: 34%; top: 24%; background: var(--color-secondary); animation-duration: 2.9s; animation-delay: -1.2s; }
.haveitall-site-popup__result-confetti span:nth-child(8) { inset-inline-end: 10%; top: 18%; background: var(--color-secondary); animation-duration: 2.5s; animation-delay: -0.6s; }
.haveitall-site-popup__result-confetti span:nth-child(9) { inset-inline-start: 8%; top: 26%; background: var(--color-accent); animation-duration: 2.7s; animation-delay: -0.8s; }
.haveitall-site-popup__result-confetti span:nth-child(10) { inset-inline-end: 42%; top: 10%; background: var(--color-accent); animation-duration: 3.1s; animation-delay: -1.0s; }

.haveitall-site-popup__result-actions {
	margin-top: 1rem;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem;
	align-items: stretch;
	margin-bottom: 0.9rem;
}

.haveitall-site-popup__result-actions .haveitall-site-popup__cta,
.haveitall-site-popup__result-actions .haveitall-site-popup__ghost {
	width: 100%;
	min-width: 0;
	min-height: 50px;
	font-size: 0.95rem;
	padding: 0.55rem 0.7rem;
	white-space: normal;
	text-align: center;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.haveitall-site-popup__result-actions .haveitall-site-popup__ghost--consult {
	flex-wrap: wrap;
}

/* Final result view: vertically center icon + copy + CTAs in the dialog body */
.haveitall-site-popup__view[data-popup-view="result"].is-active {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: stretch;
	min-height: min(42vh, 340px);
	box-sizing: border-box;
}

.haveitall-site-popup__copied {
	position: fixed;
	z-index: 160;
	left: 0;
	top: 0;
	transform: translate(-50%, -120%);
	margin: 0;
	padding: 0.28rem 0.48rem;
	border-radius: 7px;
	background: rgba(15, 23, 42, 0.92);
	color: #fff;
	box-shadow: 0 6px 14px rgba(2, 6, 23, 0.28);
	font-size: 0.8rem;
	opacity: 0;
	text-align: center;
	transition: opacity 160ms ease, transform 160ms ease;
	pointer-events: none;
	white-space: nowrap;
}

.haveitall-site-popup__copied.is-visible {
	opacity: 1;
	transform: translate(-50%, -130%);
}

@keyframes haveitallPopupDesktopIn {
	from {
		opacity: 0;
		transform: scale(0.97);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes haveitallPopupStepIn {
	from {
		opacity: 0;
		transform: translateX(10px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes haveitallPopupViewIn {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes haveitallPopupConfettiDrift {
	0% {
		transform: translate3d(0, 0, 0) rotate(0deg) scale(0.95);
		opacity: 0.55;
	}
	25% {
		transform: translate3d(2px, -7px, 0) rotate(45deg) scale(1);
		opacity: 0.95;
	}
	50% {
		transform: translate3d(-3px, 3px, 0) rotate(110deg) scale(0.9);
		opacity: 0.75;
	}
	75% {
		transform: translate3d(3px, -5px, 0) rotate(190deg) scale(1.05);
		opacity: 0.9;
	}
	100% {
		transform: translate3d(0, 0, 0) rotate(260deg) scale(0.95);
		opacity: 0.55;
	}
}

@media (max-width: 1024px) {
	.haveitall-site-popup {
		align-items: end;
		padding: 0;
	}

	.haveitall-site-popup__dialog {
		width: 100%;
		max-height: 94dvh;
		border-radius: 18px 18px 0 0;
		transform: translateY(100%) scale(1);
	}

	.haveitall-site-popup[data-haveitall-popup-layout="content"] .haveitall-site-popup__dialog {
		width: 100%;
	}

	.haveitall-site-popup__main {
		min-height: 0;
		height: 100%;
	}

	.haveitall-site-popup__view[data-popup-view="quiz"].is-active {
		min-height: 0;
	}
}

@media (max-width: 767px) {
	.haveitall-site-popup {
		align-items: end;
		padding: 0;
		/* One consistent bottom-sheet height (starter + quiz + result); content scrolls inside */
		--abt-popup-mobile-sheet-height: min(68dvh, 520px);
	}

	.haveitall-site-popup__dialog {
		width: 100%;
		height: var(--abt-popup-mobile-sheet-height);
		min-height: var(--abt-popup-mobile-sheet-height);
		max-height: var(--abt-popup-mobile-sheet-height);
		border-radius: 18px 18px 0 0;
		transform: translateY(22px) scale(1);
		display: flex;
		flex-direction: column;
		overflow: hidden;
	}

	.haveitall-site-popup[data-haveitall-popup-layout="content"] .haveitall-site-popup__dialog {
		width: 100%;
	}

	.haveitall-site-popup__layout {
		flex: 1 1 auto;
		min-height: 0;
		grid-template-rows: minmax(0, 1fr);
		align-items: stretch;
	}

	.haveitall-site-popup[data-haveitall-popup-layout="split"] .haveitall-site-popup__layout {
		grid-template-columns: 38% 62%;
		min-height: 0;
		direction: ltr;
	}

	.haveitall-site-popup[data-haveitall-popup-layout="content"] .haveitall-site-popup__layout {
		grid-template-columns: 1fr;
	}

	.haveitall-site-popup__visual {
		min-height: 0;
		max-height: 100%;
		overflow: hidden;
		align-self: stretch;
	}

	.haveitall-site-popup__main {
		flex: 1 1 auto;
		min-height: 0;
		display: flex;
		flex-direction: column;
		overflow: hidden;
		padding: 0.9rem 0.82rem 0.82rem;
	}

	.haveitall-site-popup__quiz-progress-area {
		flex-shrink: 0;
	}

	.haveitall-site-popup__main > .haveitall-site-popup__view.is-active {
		flex: 1 1 auto;
		min-height: 0;
		overflow-y: auto;
		overflow-x: hidden;
		-webkit-overflow-scrolling: touch;
	}

	.haveitall-site-popup__view[data-popup-view="quiz"].is-active,
	.haveitall-site-popup__view[data-popup-view="size-pick"].is-active {
		overflow: hidden;
		display: grid;
		grid-template-rows: auto minmax(0, 1fr) auto;
		align-content: stretch;
		height: 100%;
		max-height: none;
		min-height: 0;
	}

	.haveitall-site-popup__view[data-popup-view="size-guide-form"].is-active {
		overflow: hidden;
		display: flex;
		flex-direction: column;
		min-height: 0;
	}

	/* Text-only steps: fill fixed sheet so intro/result/badge content can stay vertically centered */
	.haveitall-site-popup__view[data-popup-view="size-guide-intro"].is-active,
	.haveitall-site-popup__view[data-popup-view="size-guide-result"].is-active,
	.haveitall-site-popup__view[data-popup-view="size-guide-badge"].is-active {
		overflow: hidden;
		display: flex;
		flex-direction: column;
		flex: 1 1 auto;
		min-height: 0;
		height: 100%;
		max-height: none;
	}

	/* Quiz completion result: same sheet height as other steps — center block vertically */
	.haveitall-site-popup__view[data-popup-view="result"].is-active {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: stretch;
		flex: 1 1 auto;
		min-height: 0;
		height: 100%;
		max-height: none;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		padding: 0.35rem 0 0.65rem;
		box-sizing: border-box;
	}

	.haveitall-site-popup__view[data-popup-view="size-guide-form"] .haveitall-site-popup__size-guide-scroll {
		flex: 1 1 auto;
		min-height: 0;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		max-height: none;
	}

	.haveitall-site-popup__view[data-popup-view="size-pick"] .haveitall-site-popup__options--size-grid {
		max-height: none;
		min-height: 0;
	}

	.haveitall-site-popup__quiz-nav {
		position: relative;
		bottom: auto;
		flex-shrink: 0;
		margin-top: 0.45rem;
	}

	.haveitall-site-popup__view[data-popup-view="size-guide-intro"] .haveitall-site-popup__quiz-nav,
	.haveitall-site-popup__view[data-popup-view="size-guide-form"] .haveitall-site-popup__quiz-nav,
	.haveitall-site-popup__view[data-popup-view="size-guide-result"] .haveitall-site-popup__quiz-nav,
	.haveitall-site-popup__view[data-popup-view="size-guide-badge"] .haveitall-site-popup__quiz-nav {
		margin-top: auto;
	}

	.haveitall-site-popup[data-haveitall-popup-layout="content"] .haveitall-site-popup__visual {
		display: none;
	}

	.haveitall-site-popup[data-haveitall-popup-layout="split"] .haveitall-site-popup__visual {
		display: flex;
		padding: 0;
		clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
	}

	.haveitall-site-popup[data-haveitall-popup-layout="split"] .haveitall-site-popup__visual img {
		height: 100%;
		min-height: 100%;
	}

	.haveitall-site-popup[data-haveitall-popup-layout="content"] .haveitall-site-popup__main {
		padding-top: 0.55rem;
	}

	.haveitall-site-popup[data-haveitall-popup-layout="split"] .haveitall-site-popup__main {
		padding: 3rem 0.68rem 0.72rem;
	}

	.haveitall-site-popup__title,
	.haveitall-site-popup__quiz-title {
		font-size: 1.08rem;
	}

	.haveitall-site-popup__subtitle {
		font-size: 0.86rem;
		line-height: 1.55;
	}

	.haveitall-site-popup[data-haveitall-popup-layout="split"] .haveitall-site-popup__title {
		font-size: 1.03rem;
		line-height: 1.45;
		margin-bottom: 0.3rem;
	}

	.haveitall-site-popup[data-haveitall-popup-layout="split"] .haveitall-site-popup__subtitle {
		font-size: 0.8rem;
		line-height: 1.45;
	}

	.haveitall-site-popup__close {
		top: 0.35rem;
		inset-inline-start: 0.35rem;
		width: 30px;
		height: 30px;
	}

	.haveitall-site-popup__opt-img,
	.haveitall-site-popup__opt-ico {
		width: 100%;
		height: 100%;
	}

	.haveitall-site-popup__option-ico {
		width: 44px;
		height: 44px;
	}

	.haveitall-site-popup__option {
		min-height: 90px;
		padding: 0.52rem 0.5rem;
	}

	.haveitall-site-popup__badges {
		grid-template-columns: 1fr;
	}

	.haveitall-site-popup[data-haveitall-popup-layout="split"] .haveitall-site-popup__badges {
		gap: 0.36rem;
		margin-top: 0.7rem;
	}

	.haveitall-site-popup[data-haveitall-popup-layout="split"] .haveitall-site-popup__badges li {
		padding: 0.42rem 0.5rem;
		font-size: 0.68rem;
	}

	.haveitall-site-popup[data-haveitall-popup-layout="split"] .haveitall-site-popup__actions {
		margin-top: 0.62rem;
		gap: 0.42rem;
	}

	.haveitall-site-popup[data-haveitall-popup-layout="split"] .haveitall-site-popup__cta,
	.haveitall-site-popup[data-haveitall-popup-layout="split"] .haveitall-site-popup__ghost {
		min-height: 44px;
		font-size: 0.8rem;
		border-radius: 10px;
	}

	.haveitall-site-popup__nav-btn,
	.haveitall-site-popup__cta,
	.haveitall-site-popup__ghost {
		min-height: 40px;
		padding: 0.48rem 0.75rem;
		font-size: 0.86rem;
	}

	.haveitall-site-popup[data-haveitall-popup-layout="split"] .haveitall-site-popup__dismiss-link {
		margin-top: 0.5rem;
		font-size: 0.8rem;
	}

	.haveitall-site-popup__result-actions {
		grid-template-columns: 1fr;
		margin-bottom: 0.35rem;
	}

	.haveitall-site-popup__view[data-popup-view="result"] .haveitall-site-popup__result-hero {
		margin-top: 0.25rem;
		margin-bottom: 0.35rem;
		padding-top: 0.25rem;
	}

	.haveitall-site-popup__options--grid {
		grid-template-columns: minmax(0, 100%);
		justify-content: center;
	}
}

/* Size pick + size guide (post–Q5) */
.haveitall-site-popup__options--size-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.5rem;
	max-height: min(52vh, 420px);
	overflow: auto;
	padding: 0.15rem 0;
}

.haveitall-site-popup__option--compact {
	min-height: 44px;
	padding: 0.35rem 0.5rem;
}

/* Text-only size-guide views: center copy in the area above the nav */
.haveitall-site-popup__view[data-popup-view="size-guide-intro"].is-active,
.haveitall-site-popup__view[data-popup-view="size-guide-result"].is-active,
.haveitall-site-popup__view[data-popup-view="size-guide-badge"].is-active {
	display: flex;
	flex-direction: column;
	min-height: min(44vh, 360px);
}

.haveitall-site-popup__view[data-popup-view="size-guide-intro"] .haveitall-site-popup__size-guide-intro-inner,
.haveitall-site-popup__view[data-popup-view="size-guide-result"] .haveitall-site-popup__size-guide-result-inner,
.haveitall-site-popup__view[data-popup-view="size-guide-badge"] .haveitall-site-popup__size-guide-badge-inner {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	text-align: center;
	padding: 1rem 0.85rem;
	box-sizing: border-box;
}

.haveitall-site-popup__size-guide-lead {
	font-size: 1.05rem;
	line-height: 1.55;
	margin: 0;
	color: var(--abt-popup-ink, inherit);
}

.haveitall-site-popup__size-guide-scroll {
	max-height: min(56vh, 480px);
	overflow: auto;
	padding: 0.25rem 0 0.5rem;
	-webkit-overflow-scrolling: touch;
}

.haveitall-site-popup__guide-section {
	margin-bottom: 1.25rem;
}

.haveitall-site-popup__guide-section--tight {
	margin-top: -0.35rem;
}

.haveitall-site-popup__guide-section-title {
	font-size: 0.92rem;
	font-weight: 600;
	margin: 0 0 0.5rem;
	line-height: 1.45;
	color: var(--abt-popup-ink, inherit);
}

.haveitall-site-popup__options--band-row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.45rem;
}

.haveitall-site-popup__option--band {
	min-height: 48px;
	padding: 0.35rem 0.4rem;
}

.haveitall-site-popup__option--band .haveitall-site-popup__option-ico {
	width: 40px;
	height: 40px;
}

.haveitall-site-popup__size-guide-rec-line1 {
	font-size: 1.05rem;
	line-height: 1.55;
	margin: 0 0 0.5rem;
	font-weight: 600;
}

.haveitall-site-popup__size-guide-rec-line2 {
	font-size: 0.95rem;
	line-height: 1.5;
	margin: 0;
	opacity: 0.92;
}

.haveitall-site-popup__size-guide-badge-title {
	font-size: 1.08rem;
	font-weight: 600;
	margin: 0 0 0.35rem;
	line-height: 1.45;
}

.haveitall-site-popup__size-guide-badge-label {
	font-size: 0.95rem;
	margin: 0;
	opacity: 0.9;
}

.haveitall-site-popup__quiz-nav--single {
	justify-content: center;
}

.haveitall-site-popup__quiz-nav--single .haveitall-site-popup__nav-btn--next {
	flex: 1;
	max-width: 100%;
	justify-content: center;
}

@media (max-width: 767px) {
	.haveitall-site-popup__options--size-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.haveitall-site-popup__options--band-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@keyframes haveitallPopupMobileIn {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
