.tos-quiz-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(40, 30, 25, 0.55);
	z-index: 999999;
	align-items: center;
	justify-content: center;
	padding: 16px;
	backdrop-filter: blur(3px);
}
.tos-quiz-overlay.is-open { display: flex; }

.tos-quiz-modal {
	background: #fbf7f2;
	color: #3a2f2a;
	width: 100%;
	max-width: 520px;
	max-height: 90vh;
	overflow-y: auto;
	border-radius: 18px;
	padding: 32px 28px;
	position: relative;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
	font-family: inherit;
	animation: tosFadeUp .35s ease;
}
@keyframes tosFadeUp {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: translateY(0); }
}

.tos-quiz-close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #9a8579;
}
.tos-quiz-close:hover { color: #3a2f2a; }

.tos-quiz-modal h2 { font-size: 1.5rem; margin: 0 0 10px; }
.tos-quiz-modal h3 { font-size: 1.2rem; margin: 0 0 18px; line-height: 1.4; }
.tos-quiz-intro p { color: #6b5d54; margin-bottom: 22px; }
.tos-quiz-intro { text-align: center; }

.tos-quiz-btn {
	display: inline-block;
	background: #b5765a;
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 13px 30px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background .2s;
}
.tos-quiz-btn:hover { background: #9c6047; color: #fff; }

.tos-quiz-progress {
	height: 6px;
	background: #e7ddd3;
	border-radius: 999px;
	margin-bottom: 22px;
	overflow: hidden;
}
.tos-quiz-progress-bar {
	height: 100%;
	width: 0;
	background: #b5765a;
	transition: width .3s ease;
}

.tos-quiz-options { display: flex; flex-direction: column; gap: 10px; }
.tos-quiz-option {
	text-align: left;
	background: #fff;
	border: 1.5px solid #e7ddd3;
	border-radius: 12px;
	padding: 14px 16px;
	font-size: .98rem;
	color: #3a2f2a;
	cursor: pointer;
	transition: border-color .2s, background .2s;
}
.tos-quiz-option:hover {
	border-color: #96A931;
	background: #96A931;
	color: #fff;
}

.tos-quiz-loading { text-align: center; padding: 30px 0; color: #6b5d54; }

.tos-quiz-result { text-align: center; }
.tos-quiz-kit-label { color: #6b5d54; margin: 0; font-size: .95rem; }
.tos-quiz-kit-name { font-size: 1.6rem; color: #b5765a; margin: 4px 0 20px; }

.tos-quiz-card {
	background: #fff;
	border: 1px solid #e7ddd3;
	border-radius: 16px;
	padding: 20px;
}
.tos-quiz-card img {
	max-width: 220px;
	width: 100%;
	height: auto;
	border-radius: 12px;
	margin-bottom: 14px;
}
.tos-quiz-card h4 { margin: 0 0 8px; font-size: 1.15rem; }
.tos-quiz-price { margin-bottom: 18px; font-size: 1.1rem; color: #3a2f2a; }
.tos-quiz-price del { color: #9a8579; font-weight: 400; }

.tos-quiz-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}
.tos-quiz-link { color: #6b5d54; text-decoration: underline; font-size: .9rem; }
.tos-quiz-error { color: #b04a3a; }
.tos-quiz-coupon-note {
	background: #fff4ec;
	border: 1px dashed #b5765a;
	color: #9c6047;
	border-radius: 10px;
	padding: 10px 14px;
	margin: 0 0 16px;
	font-size: .92rem;
}
.tos-quiz-btn:disabled { opacity: .6; cursor: default; }

@media (max-width: 480px) {
	.tos-quiz-modal { padding: 26px 20px; border-radius: 14px; }
	.tos-quiz-modal h2 { font-size: 1.3rem; }
}
