.ttc-garment-options {
	--ttc-blue: #1115b8;
	--ttc-border: #d8dce6;
	--ttc-text-muted: #647083;
	display: grid;
	gap: 18px;
	margin: 0 0 22px;
	padding: 20px 0;
	border-top: 1px solid var(--ttc-border);
	border-bottom: 1px solid var(--ttc-border);
}

.ttc-choice-group {
	display: grid;
	grid-template-columns: minmax(120px, 28%) minmax(0, 1fr);
	gap: 18px;
	align-items: start;
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.ttc-choice-group legend {
	float: left;
	width: 100%;
	margin: 10px 0 0;
	padding: 0;
	color: var(--ttc-text-muted);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
}

.ttc-choice-group legend span {
	color: #d82d38;
}

.ttc-choice-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	min-width: 0;
}

.ttc-choice-grid[hidden],
.ttc-child-size-guide[hidden] {
	display: none !important;
}

.ttc-size-grid--adult {
	grid-template-columns: repeat(7, minmax(42px, 1fr));
}

.ttc-size-grid--woman {
	grid-template-columns: repeat(5, minmax(48px, 1fr));
}

.ttc-size-grid--child {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ttc-choice {
	position: relative;
	display: block;
	min-width: 0;
	cursor: pointer;
}

.ttc-choice input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.ttc-choice > span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 8px 10px;
	border: 1px solid var(--ttc-border);
	background: #fff;
	color: #171922;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

.ttc-choice:hover > span {
	border-color: #9198aa;
}

.ttc-choice input:focus-visible + span {
	outline: 3px solid rgb(17 21 184 / 20%);
	outline-offset: 2px;
}

.ttc-choice input:checked + span {
	border-color: var(--ttc-blue);
	background: rgb(17 21 184 / 5%);
	color: var(--ttc-blue);
	box-shadow: inset 0 0 0 1px var(--ttc-blue);
}

.ttc-size-choice > span {
	flex-direction: column;
	gap: 3px;
}

.ttc-size-choice strong {
	font-size: inherit;
}

.ttc-size-choice small {
	color: var(--ttc-text-muted);
	font-size: 11px;
	font-weight: 500;
}

.ttc-child-size-guide {
	margin-left: calc(28% + 18px);
	border: 1px solid var(--ttc-border);
	background: #f7f8fb;
}

.ttc-child-size-guide summary {
	padding: 12px 14px;
	color: var(--ttc-blue);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.ttc-size-table-wrap {
	overflow-x: auto;
	padding: 0 14px;
}

.ttc-child-size-guide table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	background: #fff;
	font-size: 12px;
}

.ttc-child-size-guide th,
.ttc-child-size-guide td {
	padding: 8px;
	border: 1px solid var(--ttc-border);
	text-align: left;
	white-space: nowrap;
}

.ttc-child-size-guide th {
	background: #eef0f6;
	color: #252938;
	font-weight: 700;
}

.ttc-child-size-guide p {
	margin: 10px 14px 13px;
	color: var(--ttc-text-muted);
	font-size: 12px;
}

@media (max-width: 1100px) {
	.ttc-size-grid--adult {
		grid-template-columns: repeat(4, minmax(48px, 1fr));
	}
}

@media (max-width: 767px) {
	.ttc-garment-options {
		gap: 16px;
		padding: 18px 0;
	}

	.ttc-choice-group {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.ttc-choice-group legend {
		float: none;
		margin-top: 0;
	}

	.ttc-model-grid,
	.ttc-size-grid--woman {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ttc-size-grid--adult {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.ttc-size-grid--child {
		grid-template-columns: 1fr 1fr;
	}

	.ttc-child-size-guide {
		margin-left: 0;
	}
}

@media (max-width: 420px) {
	.ttc-size-grid--child {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ttc-choice > span {
		transition: none;
	}
}
