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

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

.kfq-root {
	color-scheme: light;
	--kfq-surface: #fff;
	--kfq-surface-soft: #fafbfc;
	--kfq-surface-muted: #f1f4f8;
	--kfq-surface-icon: #f0f4f8;
	--kfq-text: #172033;
	--kfq-heading: #121a2a;
	--kfq-muted: #566176;
	--kfq-subtle: #7a8495;
	--kfq-border: #dbe1ea;
	--kfq-border-strong: #cfd6e1;
	--kfq-progress-bg: #e8edf3;
	--kfq-disabled: #cbd2dc;
	--kfq-positive: #15803d;
	--kfq-error-bg: #fff0f0;
	--kfq-error-text: #a11616;
	--kfq-safety-bg: #fff8e6;
	--kfq-safety-border: #f0c66a;
	--kfq-safety-text: #744b00;
	--kfq-coupon-action: #172033;
	--kfq-accent-ui: var(--kfq-accent, #1565c0);
	direction: rtl;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.75;
	color: var(--kfq-text);
}

html[data-color-mode="dark"] .kfq-root,
body[data-color-mode="dark"] .kfq-root,
[data-theme="dark"] .kfq-root,
.dark-mode .kfq-root {
	color-scheme: dark;
	--kfq-surface: #171c24;
	--kfq-surface-soft: #11161d;
	--kfq-surface-muted: #252c37;
	--kfq-surface-icon: #202733;
	--kfq-text: #f1f5f9;
	--kfq-heading: #fff;
	--kfq-muted: #c3ccd8;
	--kfq-subtle: #aab5c3;
	--kfq-border: rgba(255, 255, 255, .14);
	--kfq-border-strong: rgba(255, 255, 255, .22);
	--kfq-progress-bg: #303846;
	--kfq-disabled: #3b4554;
	--kfq-positive: #4ade80;
	--kfq-error-bg: #3b1d22;
	--kfq-error-text: #fecaca;
	--kfq-safety-bg: #352a12;
	--kfq-safety-border: #8a681e;
	--kfq-safety-text: #fde3a7;
	--kfq-coupon-action: #e8edf4;
	--kfq-accent-ui: color-mix(in srgb, var(--kfq-accent, #1565c0) 58%, white);
}

@media (prefers-color-scheme: dark) {
	html[data-color-mode="os-default"] .kfq-root,
	html:not([data-color-mode]) .kfq-root {
		color-scheme: dark;
		--kfq-surface: #171c24;
		--kfq-surface-soft: #11161d;
		--kfq-surface-muted: #252c37;
		--kfq-surface-icon: #202733;
		--kfq-text: #f1f5f9;
		--kfq-heading: #fff;
		--kfq-muted: #c3ccd8;
		--kfq-subtle: #aab5c3;
		--kfq-border: rgba(255, 255, 255, .14);
		--kfq-border-strong: rgba(255, 255, 255, .22);
		--kfq-progress-bg: #303846;
		--kfq-disabled: #3b4554;
		--kfq-positive: #4ade80;
		--kfq-error-bg: #3b1d22;
		--kfq-error-text: #fecaca;
		--kfq-safety-bg: #352a12;
		--kfq-safety-border: #8a681e;
		--kfq-safety-text: #fde3a7;
		--kfq-coupon-action: #e8edf4;
		--kfq-accent-ui: color-mix(in srgb, var(--kfq-accent, #1565c0) 58%, white);
	}
}

body.kfq-is-open {
	overflow: hidden;
}

.kfq-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	padding: 18px;
	background: rgba(12, 22, 40, .58);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}

.kfq-dialog {
	position: relative;
	width: min(100%, 560px);
	max-height: min(760px, calc(100vh - 36px));
	overflow: auto;
	overscroll-behavior: contain;
	background: var(--kfq-surface);
	border: 1px solid var(--kfq-border);
	border-radius: 22px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
	padding: 30px;
	contain: layout style;
	animation: kfq-in .22s ease-out both;
}

.kfq-close {
	position: absolute;
	top: 13px;
	left: 14px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--kfq-surface-muted);
	color: var(--kfq-text);
	font: 400 27px/1 Arial, sans-serif;
	cursor: pointer;
}

.kfq-close:hover,
.kfq-close:focus-visible {
	background: var(--kfq-progress-bg);
}

.kfq-progress {
	height: 5px;
	margin: 2px 0 26px;
	overflow: hidden;
	border-radius: 99px;
	background: var(--kfq-progress-bg);
}

.kfq-progress span {
	display: block;
	width: 8%;
	height: 100%;
	border-radius: inherit;
	background: var(--kfq-accent-ui);
	transition: width .24s ease;
}

.kfq-step {
	min-height: 310px;
}

.kfq-step h2 {
	margin: 0 0 12px;
	padding-left: 42px;
	color: var(--kfq-heading);
	font-size: clamp(21px, 4vw, 28px);
	line-height: 1.45;
}

.kfq-step p {
	margin: 8px 0 18px;
	color: var(--kfq-muted);
}

.kfq-step .kfq-step-hint {
	margin-top: -4px;
	font-size: 13px;
}

.kfq-symbol,
.kfq-result-mark {
	display: grid;
	place-items: center;
	width: 62px;
	height: 62px;
	margin: 0 auto 16px;
	border-radius: 20px;
	background: color-mix(in srgb, var(--kfq-accent, #1565c0) 16%, var(--kfq-surface));
	color: var(--kfq-accent-ui);
	font-size: 30px;
	font-weight: 800;
}

.kfq-benefits {
	margin: 20px 0;
	padding: 0;
	list-style: none;
}

.kfq-benefits li {
	position: relative;
	margin: 9px 0;
	padding-right: 25px;
}

.kfq-benefits li::before {
	content: "✓";
	position: absolute;
	right: 0;
	color: var(--kfq-positive);
	font-weight: 800;
}

.kfq-primary,
.kfq-secondary,
.kfq-choices button,
.kfq-back,
.kfq-coupon button,
.kfq-launcher {
	font: inherit;
	cursor: pointer;
}

.kfq-primary,
a.kfq-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 49px;
	padding: 11px 20px;
	border: 1px solid var(--kfq-accent, #1565c0);
	border-radius: 13px;
	background: var(--kfq-accent, #1565c0);
	color: #fff;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	box-shadow: 0 8px 18px color-mix(in srgb, var(--kfq-accent, #1565c0) 22%, transparent);
}

.kfq-primary:hover,
.kfq-primary:focus-visible {
	filter: brightness(.94);
	color: #fff;
}

.kfq-primary:disabled {
	border-color: var(--kfq-disabled);
	background: var(--kfq-disabled);
	box-shadow: none;
	cursor: not-allowed;
	filter: none;
}

.kfq-secondary {
	width: 100%;
	min-height: 44px;
	margin-top: 10px;
	border: 1px solid var(--kfq-border);
	border-radius: 12px;
	background: var(--kfq-surface);
	color: var(--kfq-text);
}

.kfq-intro-close {
	font-weight: 650;
}

.kfq-choices {
	display: grid;
	gap: 11px;
	margin: 20px 0 14px;
}

.kfq-choices.kfq-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kfq-choices button {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 55px;
	padding: 12px 15px;
	border: 1px solid var(--kfq-border);
	border-radius: 13px;
	background: var(--kfq-surface);
	color: var(--kfq-text);
	text-align: right;
	transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.kfq-choices button:hover,
.kfq-choices button:focus-visible {
	border-color: var(--kfq-accent-ui);
	background: color-mix(in srgb, var(--kfq-accent, #1565c0) 9%, var(--kfq-surface));
	transform: translateY(-1px);
}

.kfq-choices button.is-selected,
.kfq-choices button[aria-pressed="true"] {
	border-color: var(--kfq-accent-ui);
	background: color-mix(in srgb, var(--kfq-accent, #1565c0) 16%, var(--kfq-surface));
	box-shadow: inset 0 0 0 1px var(--kfq-accent-ui);
}

.kfq-choices button.is-selected::after {
	content: "✓";
	margin-right: auto;
	color: var(--kfq-accent-ui);
	font-weight: 800;
}

.kfq-choices button span {
	display: grid;
	place-items: center;
	width: 31px;
	height: 31px;
	flex: 0 0 31px;
	border-radius: 9px;
	background: var(--kfq-surface-icon);
}

.kfq-back {
	padding: 7px 0;
	border: 0;
	background: transparent;
	color: var(--kfq-muted);
}

.kfq-back::before {
	content: "‹";
	display: inline-block;
	margin-left: 5px;
	font-size: 20px;
	vertical-align: -2px;
}

.kfq-step label:not(.kfq-consent) {
	display: block;
	margin: 12px 0 6px;
	font-weight: 650;
}

.kfq-step input[type="text"],
.kfq-step input[type="tel"] {
	width: 100%;
	height: 48px;
	padding: 10px 13px;
	border: 1px solid var(--kfq-border-strong);
	border-radius: 11px;
	background: var(--kfq-surface);
	color: var(--kfq-text);
	font: inherit;
	box-shadow: none;
}

.kfq-step input:focus {
	border-color: var(--kfq-accent-ui);
	outline: 3px solid color-mix(in srgb, var(--kfq-accent, #1565c0) 15%, transparent);
}

.kfq-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 15px 0;
	color: var(--kfq-muted);
	font-size: 13px;
	font-weight: 400;
}

.kfq-consent input {
	margin-top: 5px;
}

.kfq-honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.kfq-error {
	padding: 9px 12px;
	border-radius: 9px;
	background: var(--kfq-error-bg);
	color: var(--kfq-error-text) !important;
	font-size: 13px;
}

.kfq-safety {
	margin: 16px 0;
	padding: 13px;
	border: 1px solid var(--kfq-safety-border);
	border-radius: 11px;
	background: var(--kfq-safety-bg);
	color: var(--kfq-safety-text);
}

.kfq-products {
	display: grid;
	gap: 12px;
	margin: 18px 0;
}

.kfq-product {
	display: grid;
	grid-template-columns: 1fr;
	gap: 15px;
	align-items: center;
	margin: 0;
	padding: 13px;
	border: 1px solid var(--kfq-border);
	border-radius: 15px;
	background: var(--kfq-surface-soft);
}

.kfq-product.has-image {
	grid-template-columns: 118px 1fr;
}

.kfq-product img {
	display: block;
	width: 118px;
	height: 118px;
	border-radius: 11px;
	object-fit: contain;
	background: var(--kfq-surface);
}

.kfq-product strong {
	display: block;
	margin-bottom: 12px;
	font-size: 16px;
}

.kfq-product .kfq-match {
	display: inline-block;
	margin-bottom: 5px;
	color: var(--kfq-accent-ui);
	font-size: 13px;
	font-weight: 800;
}

.kfq-product .kfq-primary {
	min-height: 42px;
	padding: 8px 12px;
	font-size: 13px;
}

.kfq-coupon {
	margin: 18px 0;
	padding: 15px;
	border: 1px dashed var(--kfq-accent-ui);
	border-radius: 14px;
	background: color-mix(in srgb, var(--kfq-accent, #1565c0) 9%, var(--kfq-surface));
	text-align: center;
}

.kfq-coupon > span {
	display: block;
	margin-bottom: 9px;
	font-weight: 700;
}

.kfq-coupon > div {
	display: flex;
	justify-content: center;
	gap: 8px;
}

.kfq-coupon code {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 5px 17px;
	border: 1px solid var(--kfq-border-strong);
	border-radius: 10px;
	background: var(--kfq-surface);
	color: var(--kfq-text);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 18px;
	font-weight: 800;
	direction: ltr;
}

.kfq-coupon button {
	padding: 7px 13px;
	border: 0;
	border-radius: 10px;
	background: var(--kfq-coupon-action);
	color: var(--kfq-surface);
}

.kfq-coupon small {
	display: block;
	min-height: 22px;
	margin-top: 5px;
	color: var(--kfq-positive);
}

.kfq-fineprint {
	margin: 14px 0 0 !important;
	color: var(--kfq-subtle) !important;
	font-size: 12px;
	text-align: center;
}

.kfq-launcher {
	position: fixed;
	left: 18px;
	bottom: 18px;
	z-index: 99990;
	min-height: 43px;
	padding: 9px 16px;
	border: 0;
	border-radius: 99px;
	background: var(--kfq-accent, #1565c0);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	box-shadow: 0 9px 26px rgba(0, 0, 0, .22);
}

@keyframes kfq-in {
	from { opacity: 0; transform: translateY(13px) scale(.985); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 600px) {
	.kfq-overlay {
		place-items: end center;
		padding: 0;
		background: rgba(12, 22, 40, .48);
	}

	.kfq-dialog {
		width: 100%;
		max-height: 91vh;
		padding: 25px 19px calc(20px + env(safe-area-inset-bottom));
		border-radius: 22px 22px 0 0;
	}

	.kfq-step {
		min-height: 330px;
	}

	.kfq-step h2 {
		font-size: 22px;
	}

	.kfq-choices.kfq-grid {
		grid-template-columns: 1fr;
	}

	.kfq-product.has-image {
		grid-template-columns: 90px 1fr;
	}

	.kfq-product img {
		width: 90px;
		height: 90px;
	}

	.kfq-launcher {
		left: 12px;
		bottom: calc(12px + env(safe-area-inset-bottom));
	}
}

@media (prefers-reduced-motion: reduce) {
	.kfq-dialog,
	.kfq-progress span,
	.kfq-choices button {
		animation: none;
		transition: none;
	}
}

@media print {
	.kfq-root {
		display: none !important;
	}
}
