.svl-variation-list {
	margin-bottom: var(--svl-bottom-margin, 1rem);
}

.svl-list {
	list-style: none !important;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: var(--svl-flex-direction, row);
	flex-wrap: var(--svl-flex-wrap, wrap);
	justify-content: var(--svl-justify-content, flex-start);
	align-items: var(--svl-align-items, stretch);
	align-content: var(--svl-align-content, stretch);
	gap: var(--svl-gap, 0.35rem);
	box-sizing: border-box;
}

.svl-item {
	margin: 0;
	padding: 0;
	list-style: none;
	box-sizing: border-box;
	flex: var(--svl-card-flex-grow, 1) var(--svl-card-flex-shrink, 0) var(--svl-card-width, 160px);
	min-width: 0;
	max-width: 100%;
}

.svl-button {
	width: 100%;
	height: auto;
	margin: 0;
	box-sizing: border-box;
	text-align: var(--svl-text-align, left);
	border: var(--svl-border-width, 1px) solid var(--svl-border-color, #dcdcdc);
	background: var(--svl-background, #fff);
	color: var(--svl-text-color, inherit);
	font-family: inherit;
	font-size: var(--svl-font-size, inherit);
	font-weight: var(--svl-font-weight, inherit);
	letter-spacing: var(--svl-letter-spacing, inherit);
	line-height: var(--svl-line-height, inherit);
	padding: var(--svl-padding-y, 0.4rem) var(--svl-padding-x, 0.55rem);
	border-radius: var(--svl-radius, 5px);
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	min-height: var(--svl-min-height, 64px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.25rem;
	overflow-wrap: anywhere;
}

.svl-button .svl-label {
	display: block;
	font-size: inherit;
	line-height: inherit;
}

.svl-button .svl-separator {
	color: var(--svl-separator-color, currentColor);
	font-size: var(--svl-separator-font-size, 1em);
	font-style: var(--svl-separator-font-style, inherit);
	font-weight: var(--svl-separator-font-weight, inherit);
	letter-spacing: var(--svl-separator-letter-spacing, inherit);
	line-height: inherit;
	white-space: pre;
}

.svl-button .svl-label[data-svl-separator-mode="newline"] [data-svl-attribute-name] {
	display: block;
}

.svl-button .svl-label[data-svl-separator-mode="newline"] .svl-separator {
	display: none;
}

.svl-button .svl-price {
	display: block;
	font-size: var(--svl-price-size, 0.9em);
	font-weight: var(--svl-price-font-weight, inherit);
	letter-spacing: var(--svl-price-letter-spacing, inherit);
	color: var(--svl-price-color, #555);
}

/* WooCommerce returns its own .price wrapper. Apply the chosen size once. */
.svl-variation-list .svl-button .svl-price .price,
.svl-variation-list .svl-button .svl-price .amount,
.svl-variation-list .svl-button .svl-price bdi,
.svl-variation-list .svl-button .svl-price .woocommerce-Price-currencySymbol,
.svl-variation-list .svl-button .svl-price del,
.svl-variation-list .svl-button .svl-price ins {
	font-size: inherit;
	font-weight: inherit;
	letter-spacing: inherit;
	line-height: inherit;
	color: inherit;
}

.svl-variation-list .svl-button .svl-price .price {
	margin: 0;
}

.svl-button:hover:not(:disabled):not(.is-unavailable),
.svl-button:focus-visible:not(:disabled):not(.is-unavailable) {
	border-color: var(--svl-hover-border, #888);
	background: var(--svl-hover-background, var(--svl-background, #fff));
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06);
	outline: none;
}

.svl-button:disabled,
.svl-button.is-unavailable {
	border-style: dashed;
	color: var(--svl-disabled-text, #888);
	cursor: not-allowed;
	background: var(--svl-disabled-background, #f7f7f7);
	opacity: var(--svl-disabled-opacity, 0.7);
}

.svl-button.has-unavailable-cta {
	cursor: default;
}

.svl-unavailable-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
	margin-top: 0.15rem;
	padding: var(--svl-cta-padding-y, 0.35em) var(--svl-cta-padding-x, 0.75em);
	border: var(--svl-cta-border-width, 1px) solid var(--svl-cta-border-color, #222);
	border-radius: var(--svl-cta-radius, 4px);
	background: var(--svl-cta-background, #222);
	color: var(--svl-cta-text-color, #fff);
	font-size: var(--svl-cta-font-size, 0.85em);
	font-weight: var(--svl-cta-font-weight, inherit);
	letter-spacing: var(--svl-cta-letter-spacing, inherit);
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.svl-unavailable-cta:hover,
.svl-unavailable-cta:focus-visible {
	color: var(--svl-cta-text-color, #fff);
	filter: brightness(0.94);
	text-decoration: none;
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.svl-button.is-selected:not(:disabled):not(.is-unavailable) {
	border-color: var(--svl-selected-border, #2c7be5);
	background: var(--svl-selected-background, var(--svl-background, #fff));
	box-shadow: 0 0 0 2px var(--svl-selected-shadow, rgba(44, 123, 229, 0.2));
}

.svl-empty {
	margin: 0;
	color: var(--svl-disabled-text, #888);
}

table.variations[hidden] {
	display: none !important;
}
