.ssq {
	--ssq-pink: var(--ss-pink, #e61461);
	--ssq-ink: var(--ss-ink, #1c1c1c);
	--ssq-blue-light: var(--ss-blue-light, #d5e5e9);
	--ssq-line: var(--ss-line, #ece7e4);
	max-width: 760px;
	margin: 0 auto;
	color: var(--ssq-ink);
}

.ssq-step__count,
.ssq-result__kicker {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #5a5a5a;
}

.ssq-progress {
	height: 6px;
	margin-bottom: 28px;
	background: var(--ssq-line);
}

.ssq-progress span {
	display: block;
	height: 100%;
	background: var(--ssq-pink);
	transition: width 0.3s ease;
}

.ssq-question {
	margin: 0;
	padding: 0;
	border: 0;
}

.ssq-question__title {
	margin-bottom: 16px;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.2;
}

.ssq-question__hint {
	margin: -8px 0 16px;
	color: #5a5a5a;
}

.ssq-option {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	margin-bottom: 10px;
	padding: 0 18px;
	border: 1.5px solid #f2f2f2;
	border-radius: 12px;
	background: #fff;
	color: var(--ssq-ink);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	cursor: pointer;
}

.ssq-option span {
	padding: 10px 0;
	color: inherit;
	opacity: 1;
}

.ssq-option:has(input:checked) {
	border-color: var(--ssq-blue-light);
	background: var(--ssq-blue-light);
}

.ssq-option input {
	flex: 0 0 18px;
	accent-color: var(--ssq-pink);
	width: 18px;
	height: 18px;
	margin: 0;
}

.ssq-actions,
.ssq-result__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}

.ssq-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 28px;
	border: 1.5px solid var(--ssq-pink);
	border-radius: 0;
	background: var(--ssq-pink);
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
}

.ssq-btn--outline {
	border-color: var(--ssq-ink);
	background: #fff;
	color: var(--ssq-ink);
}

.ssq-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.ssq-result__title {
	margin: 0 0 8px;
	font-size: 32px;
	font-weight: 800;
	line-height: 1.15;
}

.ssq-result__text {
	margin: 0 0 20px;
	font-size: 17px;
	line-height: 1.6;
	color: #4a4a4a;
}

.ssq-items {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: ssq;
}

.ssq-item {
	display: flex;
	gap: 16px;
	align-items: center;
	padding: 16px 0;
	border-bottom: 1px solid var(--ssq-line);
	counter-increment: ssq;
}

.ssq-item.is-unavailable {
	opacity: 0.5;
}

.ssq-item__media {
	flex: 0 0 88px;
	background: #fafafa;
}

.ssq-item__media img {
	display: block;
	width: 88px;
	height: 88px;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.ssq-item__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ssq-item__brand {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #5a5a5a;
}


.ssq-item__step {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ssq-pink);
}

.ssq-item__reason {
	font-size: 14px;
	line-height: 1.45;
	color: #5a5a5a;
}

.ssq-item__body {
	flex: 1 1 auto;
	min-width: 0;
}

.ssq-plus {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--ssq-pink);
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.ssq-plus:disabled {
	opacity: 0.7;
}

.ssq-item__name {
	font-size: 15px;
	font-weight: 600;
	color: var(--ssq-ink);
	text-decoration: none;
}

.ssq-item__price {
	font-weight: 800;
}

.ssq-item__note {
	font-size: 13px;
	color: #b30f4b;
}

.ssq-result__total {
	display: flex;
	justify-content: space-between;
	padding: 16px 0;
	font-size: 18px;
}

.ssq-result__disclaimer {
	margin-top: 20px;
	font-size: 13px;
	color: #5a5a5a;
}

.ssq-loading,
.ssq-error {
	padding: 40px 0;
	font-size: 17px;
	text-align: center;
}

@media (max-width: 478px) {
	.ssq-question__title {
		font-size: 22px;
	}

	.ssq-btn {
		flex: 1 1 100%;
	}
}

/* Modal (desktop) / bottom drawer (mobile) */
.ssq-locked,
.ssq-locked body {
	overflow: hidden;
}

.ssq-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.ssq-modal[hidden] {
	display: none;
}

.ssq-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(28, 28, 28, 0.55);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.ssq-modal__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 720px;
	max-height: min(88vh, 860px);
	overflow: hidden;
	border-radius: 16px;
	background: #fff;
	outline: none;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.ssq-modal.is-open .ssq-modal__backdrop,
.ssq-modal.is-open .ssq-modal__panel {
	opacity: 1;
}

.ssq-modal.is-open .ssq-modal__panel {
	transform: none;
}

.ssq-modal__handle {
	display: none;
}

.ssq-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px 16px 32px;
	border-bottom: 1px solid var(--ss-line, #ece7e4);
}

.ssq-modal__title {
	margin: 0;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ss-ink, #1c1c1c);
}

.ssq-modal__title [lang="ko"] {
	font-family: "Noto Sans KR", sans-serif;
	color: inherit;
}

.ssq-modal__close {
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ss-ink, #1c1c1c);
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.ssq-modal__body {
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 28px 32px 32px;
}

@media (max-width: 767px) {
	.ssq-modal {
		align-items: flex-end;
		padding: 0;
	}

	.ssq-modal__panel {
		max-width: none;
		max-height: 92vh;
		max-height: 92dvh;
		border-radius: 16px 16px 0 0;
		opacity: 1;
		transform: translateY(100%);
		transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
	}

	.ssq-modal__handle {
		display: block;
		width: 40px;
		height: 4px;
		margin: 10px auto 0;
		border-radius: 2px;
		background: #d0d0d0;
	}

	.ssq-modal__head {
		padding: 6px 8px 10px 20px;
	}

	.ssq-modal__body {
		padding: 20px 20px calc(24px + env(safe-area-inset-bottom));
	}
}

@media (prefers-reduced-motion: reduce) {
	.ssq-modal__backdrop,
	.ssq-modal__panel {
		transition: none;
	}
}
