.tms-product-buy-card .aer-product-variant-switcher,
.aer-product-variant-switcher {
	box-sizing: border-box;
	margin: 0 0 18px;
	width: 100%;
}

.tms-product-buy-card .aer-product-variant-switcher *,
.tms-product-buy-card .aer-product-variant-switcher *::before,
.tms-product-buy-card .aer-product-variant-switcher *::after,
.aer-product-variant-switcher *,
.aer-product-variant-switcher *::before,
.aer-product-variant-switcher *::after {
	box-sizing: border-box;
}

.aer-product-variant-switcher__label {
	color: #64748b;
	font-size: 11px;
	font-weight: 850;
	letter-spacing: 0.04em;
	line-height: 1.1;
	margin: 0 0 10px;
	text-transform: uppercase;
}

.aer-product-variant-switcher__grid {
	display: grid;
	column-gap: 8px;
	row-gap: 16px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	overflow: visible;
	padding-top: 8px;
	width: 100%;
}

.aer-product-variant-switcher__tile {
	background: #ffffff;
	border: 1px solid rgba(15, 23, 42, 0.12);
	border-radius: 10px;
	color: #111827;
	display: grid;
	min-height: 62px;
	padding: 9px 6px 8px;
	position: relative;
	text-decoration: none;
	transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.aer-product-variant-switcher__tile:hover,
.aer-product-variant-switcher__tile:focus-visible {
	border-color: rgba(255, 157, 0, 0.72);
	box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
	outline: none;
	transform: translateY(-1px);
}

.aer-product-variant-switcher__tile.is-current {
	background: linear-gradient(180deg, #fff1d6 0%, #fff9ef 58%, #ffffff 100%);
	border-color: #ff9500;
	border-width: 2px;
	box-shadow: 0 10px 24px rgba(255, 149, 0, 0.14), 0 0 0 1px rgba(255, 149, 0, 0.18) inset;
}

.aer-product-variant-switcher__tile.is-unavailable {
	background: linear-gradient(180deg, #fff1f2 0%, #ffffff 100%);
	border-color: rgba(220, 38, 38, 0.42);
	box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.06) inset;
}

.aer-product-variant-switcher__tile.is-unavailable:hover,
.aer-product-variant-switcher__tile.is-unavailable:focus-visible {
	border-color: rgba(220, 38, 38, 0.72);
	box-shadow: 0 10px 22px rgba(220, 38, 38, 0.1);
}

.aer-product-variant-switcher__tile.is-unavailable .aer-product-variant-switcher__metric-value {
	color: #b91c1c;
}

.aer-product-variant-switcher__body {
	align-items: center;
	display: grid;
	column-gap: 3px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	min-width: 0;
	width: 100%;
}

.aer-product-variant-switcher__metric {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 1px;
	justify-content: center;
	min-width: 0;
	text-align: center;
}

.aer-product-variant-switcher__metric-label {
	color: #64748b;
	font-size: 8px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.05;
	min-width: 0;
	overflow: visible;
	text-overflow: clip;
	white-space: nowrap;
}

.aer-product-variant-switcher__metric-value {
	color: #111827;
	display: block;
	font-size: 11.4px;
	font-weight: 720;
	line-height: 1.02;
	min-width: 0;
	overflow: visible;
	text-overflow: clip;
	white-space: nowrap;
}

.aer-product-variant-switcher__current {
	align-items: center;
	background: linear-gradient(135deg, #ff9500 0%, #ffb340 100%);
	border-radius: 999px;
	box-shadow: 0 8px 18px rgba(255, 149, 0, 0.28), 0 1px 0 rgba(255, 255, 255, 0.22) inset;
	color: #ffffff;
	display: inline-grid;
	font-size: 10px;
	font-weight: 900;
	height: 22px;
	justify-content: center;
	left: 50%;
	letter-spacing: 0;
	line-height: 1;
	min-width: 56px;
	padding: 0 9px;
	place-items: center;
	position: absolute;
	text-align: center;
	top: -7px;
	transform: translateX(-50%);
	white-space: nowrap;
	z-index: 2;
}

.aer-product-variant-switcher__delta {
	align-items: center;
	border: 0;
	border-radius: 999px;
	display: inline-grid;
	height: 22px;
	justify-content: center;
	min-width: 40px;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1;
	padding: 0 7px;
	place-items: center;
	position: absolute;
	right: -5px;
	top: -7px;
	z-index: 2;
}

.aer-product-variant-switcher__delta.is-good {
	background: linear-gradient(135deg, #15803d 0%, #22c55e 100%);
	box-shadow: 0 8px 18px rgba(22, 163, 74, 0.28), 0 1px 0 rgba(255, 255, 255, 0.22) inset;
	color: #ffffff;
}

.aer-product-variant-switcher__delta.is-bad {
	background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
	box-shadow: 0 8px 18px rgba(220, 38, 38, 0.28), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
	color: #ffffff;
}

.aer-product-variant-switcher__delta.is-neutral {
	background: #f1f5f9;
	color: #64748b;
}

@media (max-width: 767px) {
	.tms-product-buy-card .aer-product-variant-switcher,
	.aer-product-variant-switcher {
		overflow: visible;
		max-width: 100%;
	}

	.aer-product-variant-switcher__grid {
		column-gap: 6px;
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		margin-left: 0;
		margin-right: 0;
		overflow: visible;
		padding: 12px 0 0;
		row-gap: 16px;
		width: 100%;
	}

	.aer-product-variant-switcher__tile {
		min-height: 62px;
		min-width: 0;
		overflow: visible;
		padding: 9px 4px 8px;
	}

	.aer-product-variant-switcher__tile.has-delta {
		padding-top: 9px;
	}

	.aer-product-variant-switcher__metric-label {
		font-size: 7px;
	}

	.aer-product-variant-switcher__metric-value {
		font-size: 10px;
		font-weight: 700;
	}

	.aer-product-variant-switcher__current {
		font-size: 9px;
		height: 20px;
		min-width: 48px;
		padding-left: 7px;
		padding-right: 7px;
		top: -6px;
	}

	.aer-product-variant-switcher__delta {
		font-size: 9px;
		height: 20px;
		min-width: 34px;
		padding-left: 6px;
		padding-right: 6px;
		right: -3px;
		top: -6px;
	}
}
