.tots-ocq {
	display: inline-block;
	margin: 12px 0;
}

.tots-ocq .tots-ocq__btn {
	appearance: none;
	border: 1px solid #24af61;
	background: #24af61;
	color: #fff;
	font: 600 15px/1.2 "Segoe UI", sans-serif;
	letter-spacing: 0.02em;
	padding: 12px 20px;
	border-radius: 6px;
	cursor: pointer;
	box-shadow: none;
}

.tots-ocq .tots-ocq__btn:hover,
.tots-ocq .tots-ocq__btn:focus-visible {
	background: #1d9a54;
	border-color: #1d9a54;
	color: #fff;
	outline: 2px solid #24af61;
	outline-offset: 2px;
}

.tots-ocq-modal[hidden] {
	display: none;
}

.tots-ocq-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.tots-ocq-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 14, 24, 0.72);
}

.tots-ocq-modal__dialog {
	position: relative;
	width: min(680px, 100%);
	max-height: min(860px, calc(100vh - 40px));
	overflow: auto;
	background: #fff;
	color: #172033;
	border-radius: 18px;
	padding: 28px 28px 22px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
	font-family: "Segoe UI", sans-serif;
}

.tots-ocq-modal .tots-ocq-modal__close {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 1px solid #24af61;
	border-radius: 50%;
	background: #24af61;
	color: #fff;
	line-height: 0;
	box-shadow: none;
	cursor: pointer;
}

.tots-ocq-modal .tots-ocq-modal__close svg {
	display: block;
	width: 16px;
	height: 16px;
}

.tots-ocq-modal .tots-ocq-modal__close:hover,
.tots-ocq-modal .tots-ocq-modal__close:focus-visible {
	background: #1d9a54;
	border-color: #1d9a54;
	color: #fff;
	outline: 2px solid #24af61;
	outline-offset: 2px;
}

.tots-ocq-modal .tots-ocq-modal__kicker {
	margin: 0 48px 6px 0;
	color: #24af61;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.tots-ocq-modal__title {
	margin: 0 36px 16px 0;
	font-size: 26px;
	line-height: 1.25;
	font-weight: 700;
}

.tots-ocq-modal__progress {
	height: 6px;
	border-radius: 99px;
	background: #e7f6ee;
	overflow: hidden;
	margin-bottom: 18px;
}

.tots-ocq-modal__progress-bar {
	display: block;
	height: 100%;
	width: 0;
	background: #24af61;
	transition: width 0.25s ease;
}

.tots-ocq-modal__step {
	margin: 0 0 8px;
	color: #6d6254;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.tots-ocq-modal__question {
	margin: 0 0 12px;
	font-size: 20px;
	line-height: 1.35;
}

.tots-ocq-modal__prompt {
	margin: 0 0 16px;
	padding: 14px 16px;
	background: #fff;
	border-left: 4px solid #c8962e;
	border-radius: 8px;
	font-size: 16px;
	line-height: 1.5;
}

.tots-ocq-modal__options {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tots-ocq-modal .tots-ocq-modal__dialog button.tots-ocq-modal__option {
	width: 100%;
	text-align: left;
	border: 1px solid #d9d0c2;
	background: #fff !important;
	background-color: #fff !important;
	color: #172033 !important;
	-webkit-text-fill-color: #172033 !important;
	border-radius: 10px;
	padding: 12px 14px;
	font: 500 15px/1.4 "Segoe UI", sans-serif;
	cursor: pointer;
	opacity: 1;
	text-indent: 0;
}

.tots-ocq-modal .tots-ocq-modal__dialog button.tots-ocq-modal__option:hover,
.tots-ocq-modal .tots-ocq-modal__dialog button.tots-ocq-modal__option:focus-visible {
	border-color: #24af61;
	background: #e7f6ee !important;
	background-color: #e7f6ee !important;
	color: #172033 !important;
	-webkit-text-fill-color: #172033 !important;
	outline: none;
}

.tots-ocq-modal .tots-ocq-modal__dialog button.tots-ocq-modal__option.is-selected,
.tots-ocq-modal .tots-ocq-modal__dialog button.tots-ocq-modal__option.is-selected:hover,
.tots-ocq-modal .tots-ocq-modal__dialog button.tots-ocq-modal__option.is-selected:focus-visible {
	border-color: #102033;
	background: #102033 !important;
	background-color: #102033 !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}

.tots-ocq-modal .tots-ocq-modal__dialog button.tots-ocq-modal__option.is-correct,
.tots-ocq-modal .tots-ocq-modal__dialog button.tots-ocq-modal__option.is-correct:hover,
.tots-ocq-modal .tots-ocq-modal__dialog button.tots-ocq-modal__option.is-correct:focus-visible {
	border-color: #1f7a4d;
	background: #e7f6ee !important;
	background-color: #e7f6ee !important;
	color: #145c38 !important;
	-webkit-text-fill-color: #145c38 !important;
}

.tots-ocq-modal .tots-ocq-modal__dialog button.tots-ocq-modal__option.is-wrong,
.tots-ocq-modal .tots-ocq-modal__dialog button.tots-ocq-modal__option.is-wrong:hover,
.tots-ocq-modal .tots-ocq-modal__dialog button.tots-ocq-modal__option.is-wrong:focus-visible {
	border-color: #b42318;
	background: #fdeceb !important;
	background-color: #fdeceb !important;
	color: #8d1d15 !important;
	-webkit-text-fill-color: #8d1d15 !important;
}

.tots-ocq-modal__option:disabled {
	cursor: default;
}

.tots-ocq-modal__feedback {
	margin: 14px 0 0;
	padding: 12px 14px;
	border-radius: 10px;
	background: #fff;
	font-size: 14px;
	line-height: 1.45;
}

.tots-ocq-modal__feedback strong {
	display: block;
	margin-bottom: 4px;
}

.tots-ocq-modal__feedback.is-correct {
	background: #e7f6ee;
}

.tots-ocq-modal__feedback.is-wrong {
	background: #fdeceb;
}

.tots-ocq-modal__footer {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-top: 18px;
}

.tots-ocq-modal .tots-ocq-modal__dialog button.tots-ocq-modal__action,
.tots-ocq-modal .tots-ocq-modal__dialog button.tots-ocq-modal__ghost {
	border-radius: 8px;
	padding: 12px 16px;
	font: 600 14px/1 "Segoe UI", sans-serif;
	cursor: pointer;
	opacity: 1;
	text-indent: 0;
}

.tots-ocq-modal .tots-ocq-modal__dialog button.tots-ocq-modal__action {
	margin-left: auto;
	border: 1px solid #24af61 !important;
	background: #24af61 !important;
	background-color: #24af61 !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}

.tots-ocq-modal .tots-ocq-modal__dialog button.tots-ocq-modal__action:hover,
.tots-ocq-modal .tots-ocq-modal__dialog button.tots-ocq-modal__action:focus-visible {
	background: #1d9a54 !important;
	background-color: #1d9a54 !important;
	border-color: #1d9a54 !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}

.tots-ocq-modal .tots-ocq-modal__dialog button.tots-ocq-modal__action:disabled {
	opacity: 0.45;
	cursor: default;
}

.tots-ocq-modal .tots-ocq-modal__dialog button.tots-ocq-modal__ghost {
	border: 1px solid #d9d0c2 !important;
	background: #fff !important;
	background-color: #fff !important;
	color: #172033 !important;
	-webkit-text-fill-color: #172033 !important;
}

.tots-ocq-modal .tots-ocq-modal__dialog button.tots-ocq-modal__ghost:hover,
.tots-ocq-modal .tots-ocq-modal__dialog button.tots-ocq-modal__ghost:focus-visible {
	border-color: #24af61 !important;
	background: #e7f6ee !important;
	background-color: #e7f6ee !important;
	color: #172033 !important;
	-webkit-text-fill-color: #172033 !important;
}

.tots-ocq-modal__status {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 120px;
	color: #3d4a5c;
}

.tots-ocq-modal__spinner {
	width: 22px;
	height: 22px;
	border: 3px solid #e7f6ee;
	border-top-color: #24af61;
	border-radius: 50%;
	animation: tots-ocq-spin 0.8s linear infinite;
}

.tots-ocq-modal__score {
	width: 96px;
	height: 96px;
	margin: 8px auto 14px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #102033;
	color: #f3d48a;
	font-size: 28px;
	font-weight: 700;
}

.tots-ocq-modal__result-title {
	margin: 0 0 8px;
	text-align: center;
	font-size: 22px;
}

.tots-ocq-modal__result-note {
	margin: 0 0 8px;
	text-align: center;
	color: #5c5348;
}

@keyframes tots-ocq-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 640px) {
	.tots-ocq-modal {
		padding: 10px;
	}

	.tots-ocq-modal__dialog {
		padding: 22px 16px 16px;
	}

	.tots-ocq-modal__title,
	.tots-ocq-modal__question {
		font-size: 20px;
	}
}
