/* Modal hướng dẫn đo size */
.hanoi26-sg {
	position: fixed;
	inset: 0;
	z-index: 10060;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.hanoi26-sg.hidden {
	display: none;
}

body.hanoi26-sg-open {
	overflow: hidden;
}

.hanoi26-sg__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 39, 0.55);
	backdrop-filter: blur(2px);
}

.hanoi26-sg__panel {
	position: relative;
	width: 100%;
	max-width: 32rem;
	max-height: calc(100vh - 2rem);
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 1rem;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
	overflow: hidden;
	transform: scale(0.96) translateY(8px);
	opacity: 0;
	transition: transform 0.22s ease, opacity 0.22s ease;
}

.hanoi26-sg__panel.is-open {
	transform: scale(1) translateY(0);
	opacity: 1;
}

.hanoi26-sg__header {
	padding: 1.1rem 1.25rem 0.75rem;
	border-bottom: 1px solid #e5e7eb;
}

.hanoi26-sg__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #111827;
}

.hanoi26-sg__close {
	position: absolute;
	top: 0.9rem;
	right: 0.9rem;
	width: 2rem;
	height: 2rem;
	border: 0;
	border-radius: 0.5rem;
	background: #f3f4f6;
	color: #374151;
	cursor: pointer;
}

.hanoi26-sg__progress {
	margin-top: 0.75rem;
	height: 3px;
	background: #e5e7eb;
	border-radius: 999px;
	overflow: hidden;
}

.hanoi26-sg__progress-bar {
	display: block;
	height: 100%;
	width: 33%;
	background: #111827;
	border-radius: 999px;
	transition: width 0.25s ease;
}

.hanoi26-sg__body {
	flex: 1;
	overflow: auto;
	padding: 1rem 1.25rem 0.5rem;
}

.hanoi26-sg__step[hidden] {
	display: none !important;
}

.hanoi26-sg__hint {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin: 0 0 1rem;
	padding: 0.75rem 0.85rem;
	border-radius: 0.65rem;
	background: #f3f4f6;
	font-size: 0.8125rem;
	line-height: 1.45;
	color: #4b5563;
}

.hanoi26-sg__hint i {
	color: #6b7280;
	margin-top: 0.1rem;
}

.hanoi26-sg__label {
	margin: 0 0 0.65rem;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #9ca3af;
}

.hanoi26-sg__measure-grid {
	--hanoi26-sg-control-height: 3.25rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
	align-items: start;
}

.hanoi26-sg__field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.hanoi26-sg__field > :first-child {
	box-sizing: border-box;
	min-height: var(--hanoi26-sg-control-height);
	height: var(--hanoi26-sg-control-height);
}

.hanoi26-sg__input-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0 0.85rem 0 1rem;
	border-radius: 0.65rem;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
}

.hanoi26-sg__input {
	width: 100%;
	min-width: 0;
	border: 0;
	background: transparent;
	font-size: 1.125rem;
	font-weight: 700;
	color: #111827;
	outline: none;
	line-height: 1.2;
	-moz-appearance: textfield;
}

.hanoi26-sg__input::-webkit-outer-spin-button,
.hanoi26-sg__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.hanoi26-sg__unit {
	font-size: 0.75rem;
	font-weight: 700;
	color: #6b7280;
}

.hanoi26-sg__field-label {
	display: block;
	margin: 0;
	font-size: 0.6875rem;
	font-weight: 600;
	color: #6b7280;
	text-align: center;
}

.hanoi26-sg__gender-toggle {
	display: flex;
	align-items: stretch;
	border-radius: 0.65rem;
	overflow: hidden;
	border: 1px solid #e5e7eb;
	background: #f3f4f6;
}

.hanoi26-sg__gender-btn {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 0.9375rem;
	font-weight: 700;
	color: #6b7280;
	cursor: pointer;
	line-height: 1.2;
}

.hanoi26-sg__gender-btn.is-active {
	background: #111827;
	color: #fff;
}

.hanoi26-sg__link {
	display: block;
	width: 100%;
	margin: 0.5rem 0 0;
	padding: 0;
	border: 0;
	background: none;
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: underline;
	color: #111827;
	cursor: pointer;
	text-align: center;
}

.hanoi26-sg__size-options {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
	margin-bottom: 0.85rem;
}

.hanoi26-sg__size-options.hidden {
	display: none;
}

.hanoi26-sg__size-option {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.25rem;
	padding: 0.9rem;
	border: 2px solid #e5e7eb;
	border-radius: 0.75rem;
	background: #fff;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.hanoi26-sg__size-option.is-available:hover {
	border-color: #111827;
	background: #f9fafb;
}

.hanoi26-sg__size-option.is-unavailable {
	opacity: 0.55;
	cursor: not-allowed;
}

.hanoi26-sg__size-option-label {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6b7280;
}

.hanoi26-sg__size-option-value {
	font-size: 1.25rem;
	font-weight: 900;
	color: #111827;
	line-height: 1.2;
}

.hanoi26-sg__size-option-meta {
	font-size: 0.75rem;
	line-height: 1.35;
	color: #6b7280;
}

.hanoi26-sg__no-fit {
	margin-bottom: 0.85rem;
	padding: 0.9rem;
	border-radius: 0.75rem;
	background: #fef2f2;
	border: 1px solid #fecaca;
}

.hanoi26-sg__no-fit.hidden {
	display: none;
}

.hanoi26-sg__no-fit-msg {
	margin: 0 0 0.5rem;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.45;
	color: #b91c1c;
}

.hanoi26-sg__available-list {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.45;
	color: #4b5563;
}

.hanoi26-sg__fit-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}

.hanoi26-sg__fit-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
	padding: 0.85rem;
	border: 2px solid #e5e7eb;
	border-radius: 0.75rem;
	background: #fff;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.2s ease;
}

.hanoi26-sg__fit-card.is-active {
	border-color: #111827;
}

.hanoi26-sg__fit-icon {
	color: #111827;
}

.hanoi26-sg__fit-title {
	font-size: 0.875rem;
	font-weight: 800;
	color: #111827;
}

.hanoi26-sg__fit-desc {
	font-size: 0.75rem;
	line-height: 1.4;
	color: #6b7280;
}

.hanoi26-sg__result-badge {
	margin: 0 0 0.75rem;
	font-size: 0.875rem;
	font-weight: 700;
	color: #111827;
}

.hanoi26-sg__table-wrap {
	overflow-x: auto;
	margin-bottom: 0.75rem;
}

.hanoi26-sg__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.8125rem;
}

.hanoi26-sg__table th,
.hanoi26-sg__table td {
	padding: 0.55rem 0.65rem;
	border-bottom: 1px solid #e5e7eb;
	text-align: center;
}

.hanoi26-sg__table th {
	background: #f9fafb;
	font-weight: 800;
	letter-spacing: 0.04em;
}

.hanoi26-sg__table tr.is-highlight td {
	background: #f3f4f6;
	font-weight: 800;
	color: #111827;
}

.hanoi26-sg__howto {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	padding: 0.85rem;
	border-radius: 0.65rem;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
}

.hanoi26-sg__howto-title {
	margin: 0 0 0.25rem;
	font-size: 0.75rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #6b7280;
}

.hanoi26-sg__howto-text {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.45;
	color: #4b5563;
}

.hanoi26-sg__chart-tabs {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.hanoi26-sg__chart-tab {
	flex: 1;
	padding: 0.55rem 0.75rem;
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	background: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	cursor: pointer;
}

.hanoi26-sg__chart-tab.is-active {
	background: #111827;
	border-color: #111827;
	color: #fff;
}

.hanoi26-sg__no-size {
	margin: 0.5rem 0 0;
	font-size: 0.8125rem;
	color: #e53e3e;
}

.hanoi26-sg__no-size.hidden {
	display: none;
}

.hanoi26-sg__footer {
	display: flex;
	gap: 0.65rem;
	padding: 0.85rem 1.25rem 1.1rem;
	border-top: 1px solid #e5e7eb;
}

.hanoi26-sg__btn {
	border: 0;
	border-radius: 0.65rem;
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
}

.hanoi26-sg__btn--ghost {
	flex: 0 0 auto;
	padding: 0.85rem 1rem;
	background: #fff;
	border: 2px solid #111827;
	color: #111827;
}

.hanoi26-sg__btn--primary {
	flex: 1;
	padding: 0.9rem 1rem;
	background: #111827;
	color: #fff;
}

.hanoi26-sg__btn.hidden {
	display: none;
}

@media (max-width: 479px) {
	.hanoi26-sg__measure-grid,
	.hanoi26-sg__fit-cards,
	.hanoi26-sg__size-options {
		grid-template-columns: 1fr;
	}
}
