/* Separate parent-product age selector */
#product_page_block .ay-age-variants {
	margin-top: 18px;
}

#product_page_block .ay-age-variants-label {
	margin-bottom: 9px;
	color: #666;
	font-size: 14px;
	font-weight: 400;
}

#product_page_block .ay-age-variants-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

#product_page_block .ay-age-option {
	position: relative;
	display: inline-flex;
	min-width: 58px;
	height: 36px;
	align-items: center;
	justify-content: center;
	padding: 0 12px;
	border: 1px solid #cbd5e1;
	border-radius: 18px;
	background: #f8fafc;
	color: #334155;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition:
		background-color 150ms ease,
		border-color 150ms ease,
		box-shadow 150ms ease,
		color 150ms ease,
		opacity 150ms ease;
}

#product_page_block a.ay-age-option:hover,
#product_page_block a.ay-age-option:focus {
	border-color: #64748b;
	background: #eef2f7;
	color: #0f172a;
	text-decoration: none;
	outline: none;
}

#product_page_block .ay-age-option.is-current {
	border-color: #64748b;
	box-shadow: inset 0 0 0 1px #64748b;
	background: #e2e8f0;
	color: #0f172a;
}

#product_page_block .ay-age-option.is-backorder {
	opacity: 0.72;
}

#product_page_block .ay-age-option.is-unavailable {
	overflow: hidden;
	background: #f1f5f9;
	opacity: 0.72;
	cursor: pointer;
}

#product_page_block a.ay-age-option.is-unavailable:hover,
#product_page_block a.ay-age-option.is-unavailable:focus {
	border-color: #64748b;
	background: #e2e8f0;
	color: #0f172a;
	opacity: 0.9;
}

#product_page_block .ay-age-option.is-current.is-unavailable {
	background: #e2e8f0;
	opacity: 0.85;
	cursor: default;
}

#product_page_block .ay-age-option.is-unavailable::after {
	content: '';
	position: absolute;
	top: 50%;
	left: -8%;
	width: 116%;
	border-top: 2px solid #991b1b;
	transform: rotate(-18deg);
	transform-origin: center;
	pointer-events: none;
}

@media (max-width: 767px) {
	#product_page_block .ay-age-variants-list {
		gap: 10px;
	}

	#product_page_block .ay-age-option {
		height: 38px;
		padding: 0 13px;
	}
}
