/* Fixed quiz FAB — viewport-pinned (must live on <html>, not inside transformed ancestors) */
html > .mkl-site-quiz-fab,
.mkl-site-quiz-fab {
	position: fixed !important;
	top: 50% !important;
	left: auto !important;
	right: max(16px, env(safe-area-inset-right)) !important;
	bottom: auto !important;
	z-index: 190000 !important;
	display: inline-flex !important;
	align-items: center;
	gap: 10px;
	margin: 0 !important;
	padding: 14px 18px 14px 14px;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	color: #fff;
	font-family: "TTNorms Medium", "TTNorms Regular", sans-serif;
	font-size: 15px;
	line-height: 1.2;
	letter-spacing: 0.01em;
	background: linear-gradient(135deg, #2b1f8f 0%, #5b1fa8 55%, #7a2bc4 100%);
	box-shadow:
		0 10px 28px rgba(43, 31, 143, 0.38),
		0 2px 0 rgba(255, 255, 255, 0.12) inset;
	transform: translateY(-50%);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	-webkit-tap-highlight-color: transparent;
	/* Avoid creatium/legacy button layout rules */
	float: none !important;
	clear: none !important;
	width: auto !important;
	max-width: none !important;
	height: auto !important;
	inset: 50% max(16px, env(safe-area-inset-right)) auto auto !important;
}

.mkl-site-quiz-fab:hover,
.mkl-site-quiz-fab:focus-visible {
	transform: translateY(calc(-50% - 2px)) scale(1.02);
	box-shadow:
		0 14px 34px rgba(43, 31, 143, 0.46),
		0 2px 0 rgba(255, 255, 255, 0.14) inset;
	outline: none;
}

.mkl-site-quiz-fab:active {
	transform: translateY(-50%) scale(0.99);
}

.mkl-site-quiz-fab__icon {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	flex-shrink: 0;
}

.mkl-site-quiz-fab__icon svg {
	width: 18px;
	height: 18px;
	display: block;
}

.mkl-site-quiz-fab__pulse {
	position: absolute;
	inset: -4px;
	border-radius: inherit;
	pointer-events: none;
	box-shadow: 0 0 0 0 rgba(91, 31, 168, 0.45);
	animation: mkl-site-quiz-pulse 2.4s ease-out infinite;
}

@keyframes mkl-site-quiz-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(91, 31, 168, 0.4);
		opacity: 1;
	}
	70% {
		box-shadow: 0 0 0 14px rgba(91, 31, 168, 0);
		opacity: 0;
	}
	100% {
		opacity: 0;
	}
}

@media (max-width: 520px) {
	html > .mkl-site-quiz-fab,
	.mkl-site-quiz-fab {
		right: 12px !important;
		bottom: auto !important;
		top: 50% !important;
		padding: 12px 14px 12px 12px;
		font-size: 14px;
		inset: 50% 12px auto auto !important;
		transform: translateY(-50%);
	}

	.mkl-site-quiz-fab__label-short {
		display: inline;
	}

	.mkl-site-quiz-fab__label-full {
		display: none;
	}
}

@media (min-width: 521px) {
	.mkl-site-quiz-fab__label-short {
		display: none;
	}
}

/* Modal */
.modal.mkl-site-quiz-portal {
	position: fixed !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	z-index: 200100;
	display: none;
	text-align: center;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}

.modal.mkl-site-quiz-portal.active {
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: 20px 14px;
	box-sizing: border-box;
}

.modal.mkl-site-quiz-portal > .modal-back {
	display: none;
	position: fixed !important;
	inset: 0;
	z-index: 0;
	background: rgba(18, 12, 40, 0.58);
	backdrop-filter: blur(2px);
}

.modal.mkl-site-quiz-portal.active > .modal-back {
	display: block;
}

.modal.mkl-site-quiz-portal > .modal-dialog {
	position: relative;
	z-index: 1;
	width: min(560px, 96vw);
	margin: 0 auto !important;
	max-height: calc(100vh - 40px);
	text-align: initial;
}

.mkl-site-quiz {
	position: relative;
	background:
		radial-gradient(120% 80% at 100% 0%, rgba(122, 43, 196, 0.1), transparent 55%),
		radial-gradient(90% 70% at 0% 100%, rgba(43, 31, 143, 0.08), transparent 50%),
		#fff;
	border-radius: 18px;
	padding: 44px 24px 22px;
	box-sizing: border-box;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	box-shadow: 0 24px 60px rgba(24, 16, 56, 0.28);
}

.mkl-site-quiz__close {
	position: absolute;
	top: 8px;
	right: 10px;
	z-index: 5;
	border: 0;
	background: transparent;
	color: #5b4f86;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	padding: 6px 10px;
	border-radius: 8px;
}

.mkl-site-quiz__close:hover {
	background: rgba(91, 79, 134, 0.08);
	color: #2b1f8f;
}

.mkl-site-quiz__eyebrow {
	margin: 0 0 8px;
	font-family: "TTNorms Regular", sans-serif;
	font-size: 13px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #7a2bc4;
}

.mkl-site-quiz__title {
	margin: 0 0 10px;
	padding-right: 8px;
	font-family: "TTNorms Medium", sans-serif;
	font-size: clamp(20px, 3.2vw, 24px);
	line-height: 1.25;
	color: #1f1758;
}

.mkl-site-quiz__lead {
	margin: 0 0 18px;
	font-family: "TTNorms Regular", sans-serif;
	font-size: 15px;
	line-height: 1.45;
	color: #4b4570;
}

.mkl-site-quiz__progress {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
	padding-right: 4px;
}

.mkl-site-quiz__bar {
	flex: 1;
	height: 6px;
	border-radius: 999px;
	background: #ebe6f7;
	overflow: hidden;
}

.mkl-site-quiz__bar > span {
	display: block;
	height: 100%;
	width: 0;
	border-radius: inherit;
	background: linear-gradient(90deg, #2b1f8f, #7a2bc4);
	transition: width 0.28s ease;
}

.mkl-site-quiz__step-num {
	flex-shrink: 0;
	font-family: "TTNorms Regular", sans-serif;
	font-size: 13px;
	color: #6a6288;
	white-space: nowrap;
}

.mkl-site-quiz__question {
	margin: 0 0 16px;
	font-family: "TTNorms Medium", sans-serif;
	font-size: 18px;
	line-height: 1.35;
	color: #231971;
}

.mkl-site-quiz__options {
	display: grid;
	gap: 10px;
	margin-bottom: 16px;
}

.mkl-site-quiz__option {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 14px 16px;
	border: 1.5px solid #ddd6f0;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.9);
	text-align: left;
	cursor: pointer;
	font-family: "TTNorms Regular", sans-serif;
	font-size: 15px;
	line-height: 1.4;
	color: #2a2742;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.mkl-site-quiz__option:hover {
	border-color: #a78bdb;
	background: #faf7ff;
}

.mkl-site-quiz__option.is-selected {
	border-color: #7a2bc4;
	background: linear-gradient(180deg, #f7f1ff 0%, #fff 100%);
	box-shadow: 0 0 0 1px rgba(122, 43, 196, 0.2);
}

.mkl-site-quiz__check {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	border-radius: 50%;
	border: 2px solid #c4b6e4;
	box-sizing: border-box;
	position: relative;
}

.mkl-site-quiz__option.is-selected .mkl-site-quiz__check {
	border-color: #7a2bc4;
	background: #7a2bc4;
}

.mkl-site-quiz__option.is-selected .mkl-site-quiz__check::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 2px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.mkl-site-quiz__option--multi .mkl-site-quiz__check {
	border-radius: 5px;
}

.mkl-site-quiz__tip {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-radius: 10px;
	background: #f3ecff;
	border-left: 3px solid #7a2bc4;
	font-family: "TTNorms Regular", sans-serif;
	font-size: 14px;
	line-height: 1.45;
	color: #3d2f6b;
}

.mkl-site-quiz__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-top: 4px;
}

.mkl-site-quiz__btn {
	appearance: none;
	border: 0;
	cursor: pointer;
	border-radius: 10px;
	padding: 12px 18px;
	font-family: "TTNorms Medium", sans-serif;
	font-size: 15px;
	line-height: 1.2;
	transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.mkl-site-quiz__btn:disabled,
.mkl-site-quiz__btn.is-disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.mkl-site-quiz__btn--ghost {
	background: transparent;
	color: #5b4f86;
	padding-left: 8px;
	padding-right: 8px;
}

.mkl-site-quiz__btn--primary {
	margin-left: auto;
	color: #fff;
	background: linear-gradient(135deg, #2b1f8f, #7a2bc4);
	box-shadow: 0 8px 20px rgba(72, 32, 160, 0.28);
}

.mkl-site-quiz__btn--primary:hover:not(:disabled) {
	transform: translateY(-1px);
}

.mkl-site-quiz__channels {
	display: grid;
	gap: 8px;
	margin-bottom: 14px;
}

.mkl-site-quiz__channel {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 1.5px solid #ddd6f0;
	border-radius: 12px;
	cursor: pointer;
	font-family: "TTNorms Regular", sans-serif;
	font-size: 15px;
	color: #2a2742;
	background: #fff;
}

.mkl-site-quiz__channel.is-selected {
	border-color: #7a2bc4;
	background: #f7f1ff;
}

.mkl-site-quiz__channel input {
	accent-color: #7a2bc4;
}

.mkl-site-quiz__field {
	margin-bottom: 14px;
}

.mkl-site-quiz__field label {
	display: block;
	margin-bottom: 6px;
	font-family: "TTNorms Regular", sans-serif;
	font-size: 14px;
	color: #3d3758;
}

.mkl-site-quiz__field input {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid #d5d0e8;
	border-radius: 10px;
	font-family: "TTNorms Regular", sans-serif;
	font-size: 15px;
	color: #1f1758;
	background: #fff;
}

.mkl-site-quiz__field input:focus {
	outline: none;
	border-color: #7a2bc4;
	box-shadow: 0 0 0 3px rgba(122, 43, 196, 0.15);
}

.mkl-site-quiz__privacy {
	margin: 0 0 14px;
	font-size: 13px;
	line-height: 1.4;
	color: #5b5478;
}

.mkl-site-quiz__success {
	text-align: center;
	padding: 28px 8px 18px;
}

.mkl-site-quiz__success h3 {
	margin: 0 0 10px;
	font-family: "TTNorms Medium", sans-serif;
	font-size: 22px;
	color: #1f1758;
}

.mkl-site-quiz__success p {
	margin: 0;
	font-family: "TTNorms Regular", sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: #4b4570;
	white-space: pre-line;
}

body.mkl-site-quiz-open .mkl-site-quiz-fab {
	visibility: hidden;
	pointer-events: none;
}
