.hatnl-size-finder {
	--hatnl-accent: var(--ast-global-color-0, #7b2941);
	--hatnl-border: rgba(24, 20, 18, 0.16);
	--hatnl-soft: rgba(123, 41, 65, 0.07);
	font-size: 1rem;
}

.hatnl-size-finder__form {
	display: grid;
	gap: 0.75rem;
	padding: clamp(1rem, 3vw, 1.5rem);
	border: 1px solid var(--hatnl-border);
	border-radius: 0.5rem;
	background: var(--hatnl-soft);
}

.hatnl-size-finder__question {
	font-size: clamp(1.15rem, 2vw, 1.4rem);
	font-weight: 700;
	line-height: 1.25;
}

.hatnl-size-finder__controls {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: stretch;
}

.hatnl-size-finder__universal-option {
	display: inline-flex;
	gap: 0.55rem;
	align-items: center;
	width: fit-content;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
}

.hatnl-size-finder__universal-option input {
	width: 1.1rem;
	height: 1.1rem;
	margin: 0;
	accent-color: var(--hatnl-accent);
}

.hatnl-size-finder__input-wrap {
	display: grid;
	grid-template-columns: minmax(5.5rem, 8rem) auto;
	align-items: center;
	min-height: 2.75rem;
	border: 1px solid var(--hatnl-border);
	border-radius: 0.25rem;
	background: #fff;
	overflow: hidden;
}

.hatnl-size-finder__input-wrap input {
	width: 100%;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0.65rem 0.75rem;
	border: 0;
	box-shadow: none;
	font: inherit;
}

.hatnl-size-finder__input-wrap span {
	padding: 0 0.75rem 0 0.25rem;
	font-weight: 600;
}

.hatnl-size-finder__form .button,
.hatnl-size-finder__product .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	text-decoration: none;
}

.hatnl-size-finder__form .button {
	background-color: var(--hatnl-accent);
	color: #fff;
}

.hatnl-size-finder__message {
	margin: 1rem 0 0;
	padding: 0.85rem 1rem;
	border-left: 4px solid var(--hatnl-accent);
	background: var(--hatnl-soft);
}

.hatnl-size-finder__message--error {
	--hatnl-accent: #b42318;
	--hatnl-soft: rgba(180, 35, 24, 0.08);
}

.hatnl-size-finder__results-title {
	margin: clamp(1.75rem, 4vw, 2.75rem) 0 1rem;
}

.woocommerce .hatnl-size-finder__products,
.hatnl-size-finder__products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 3vw, 1.75rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce .hatnl-size-finder__products::before,
.woocommerce .hatnl-size-finder__products::after {
	display: none;
}

.woocommerce .hatnl-size-finder__products li.product,
.hatnl-size-finder__products li.product {
	float: none;
	width: auto;
	margin: 0;
}

.hatnl-size-finder__product img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.hatnl-size-finder__size {
	margin: 0.4rem 0 0.85rem;
	font-size: 0.95rem;
	font-weight: 600;
}

@media (max-width: 760px) {
	.woocommerce .hatnl-size-finder__products,
	.hatnl-size-finder__products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.hatnl-size-finder__controls {
		display: grid;
	}

	.hatnl-size-finder__input-wrap {
		grid-template-columns: 1fr auto;
	}

	.woocommerce .hatnl-size-finder__products,
	.hatnl-size-finder__products {
		grid-template-columns: 1fr;
	}
}
