/*--------------------------------------------------------------
# Variation Swatches
--------------------------------------------------------------*/

.product-attribute-placeholder {
	display: none;
}

.wc-variation-swatches {
	display: flex;
	flex-flow: row wrap;
	list-style: none;
	margin: 0;
	padding: 0;
}

.wc-variation-swatches li {
	margin: 0;
	padding: 0;
}

.wc-variation-swatches li span {
	align-items: center;
	border: 2px solid rgba(var(--evie-color-on-surface-rgb), 0.1);
	border-radius: 50%;
	cursor: pointer;
	display: inline-flex;
	height: 4rem;
	justify-content: center;
	margin: 0 0.8rem 0.8rem 0;
	position: relative;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
	width: 4rem;
}

.wc-variation-swatches li span:hover,
.wc-variation-swatches li span.wc-option-selected {
	border-color: rgb(var(--evie-color-on-surface-rgb));
}

.wc-variation-swatches li [data-title]::before {
	background: rgb(var(--evie-color-on-surface-rgb));
	border-radius: 0.5rem;
	color: rgb(var(--evie-color-surface-rgb));
	content: attr(data-title);
	font-size: var(--evie-font-size-sm);
	left: 50%;
	opacity: 0;
	padding: 0.5rem 1rem;
	position: absolute;
	top: -1rem;
	transform: translate(-50%, -50%);
	transition: opacity 0.25s var(--evie-transition-ease), transform 0.25s var(--evie-transition-ease), visibility 0.25s var(--evie-transition-ease);
	visibility: hidden;
	white-space: nowrap;
}

.wc-variation-swatches li [data-title]:hover::before {
	opacity: 1;
	transform: translate(-50%, -100%);
	visibility: visible;
}

.wc-variation-swatches li .attribute-type-button {
	border-radius: 0.5rem;
	padding: 0.5rem 1rem;
	width: auto;
}

.wc-variation-swatches li .attribute-type-button.wc-option-selected {
	background-color: rgb(var(--evie-color-on-surface-rgb));
	color: rgb(var(--evie-color-surface-rgb));
}

.wc-variation-swatches li span img {
	border: 2px solid transparent;
	border-radius: 50%;
}

.woocommerce-widget-layered-nav-list .attribute-type-color::after,
.wc-variation-swatches.wc-variation-attribute-type-color li span::after {
	border: 2px solid rgb(var(--evie-color-surface-rgb));
	border-radius: 50%;
	bottom: 0;
	content: "";
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
}

/*--------------------------------------------------------------
# Yith Product Add-ons
--------------------------------------------------------------*/

.single-product .woocommerce-variation-add-to-cart.variations_button:has(.yith-wapo-container) {
	flex-flow: row wrap;
}

.single-product form.cart:has(#yith-wapo-container .yith-wapo-block) {
	display: flex !important;
	flex-flow: row wrap;
}

.yith-wapo-container {
	margin-bottom: 3rem;
}

div .woocommerce-variation-add-to-cart .yith-wapo-addon {
	flex: 0 0 100%;
	width: 100%;
}

.yith-wapo-block .yith-wapo-addon .addon-header {
	line-height: 1.15;
	margin-bottom: 0;
}

.yith-wapo-addon .wapo-addon-title {
	color: rgba(var(--evie-color-on-surface-rgb), 0.6);
	font-family: var(--evie-font-secondary);
	font-size: var(--evie-font-size-sm);
	font-weight: 700;
	line-height: 1.688;
	margin-bottom: 0;
}

.yith-wapo-addon .wapo-addon-title span {
	display: inline-block;
}

.yith-wapo-block .yith-wapo-addon .yith-wapo-option label,
.yith-wapo-block .yith-wapo-addon .yith-wapo-option div.label {
	color: rgba(var(--evie-color-on-surface-rgb), 0.6);
	display: inline-block;
	font-family: var(--evie-font-secondary);
	font-size: var(--evie-font-size-sm);
	font-weight: 400;
	margin-bottom: 0.5rem;
}

.yith-wapo-addon .option-description,
.yith-wapo-addon .wapo-addon-description,
div .yith-wapo-block .yith-wapo-addon .yith-wapo-option .description {
	color: rgba(var(--evie-color-on-surface-rgb), 0.6);
	display: inline-block;
	font-family: var(--evie-font-secondary);
	font-size: var(--evie-font-size-xs);
	font-weight: 400;
	margin: 0.5rem 0 0;
}

.yith-wapo-addon .wapo-addon-description {
	margin: 0.5rem 0;
}

.yith-wapo-addon .options-container:not(:has(.wapo-addon-description)) {
	margin-top: 0.8rem;
}

.yith-wapo-block .yith-wapo-addon.yith-wapo-addon-type-select .option-image img {
	border-radius: 1rem;
}

.yith-wapo-block .yith-wapo-addon .yith-wapo-option {
	position: relative;
}

.yith-wapo-addon.yith-wapo-addon-type-radio .radio-button-container {
	display: flex;
}

div .yith-wapo-addon-type-checkbox .options .yith-wapo-option .yith-wapo-addon-label {
	margin-left: 0;
}

.yith-wapo-block .yith-wapo-addon .yith-wapo-option :is(.checkbox-button-container, .radio-button-container) label {
	font-size: var(--evie-font-size-sm);
}

.single-product .entry-summary .yith-wapo-block .woocommerce-Price-currencySymbol {
	vertical-align: baseline;
}

.single-product .product .entry-summary .yith-wapo-option .option-price,
.single-product .product .entry-summary .yith-wapo-option .option-price del {
	font-size: var(--evie-font-size-sm);
}

/* Dropdown */

.yith-wapo-block .yith-wapo-addon.yith-wapo-addon-type-select .yith-wapo-option .description {
	margin-top: 0;
}

.yith-wapo-block .yith-wapo-addon.yith-wapo-addon-type-select .label:has(.option-container) + .description {
	margin-top: 0.5rem;
}

/* Radio */

.yith-wapo-addon .yith-wapo-addon-type-radio .options-container .description {
	margin-left: 3rem;
}

.single-product .yith-wapo-block .yith-wapo-addon.yith-wapo-addon-type-select .option-image {
	margin-bottom: 0;
}

.yith-wapo-block .yith-wapo-addon:is(.yith-wapo-addon-type-radio, .yith-wapo-addon-type-checkbox) .yith-wapo-option .option-container label {
	color: rgb(var(--evie-color-on-background-rgb));
	line-height: 1.3;
}

.yith-wapo-block .yith-wapo-addon.yith-wapo-addon-type-radio .yith-wapo-option input {
	margin-right: 10px;
}

/* Input text  */

.yith-wapo-block .yith-wapo-addon.yith-wapo-addon-type-text .yith-wapo-option .description {
	margin-top: 0;
}

/* Total Price Table */

.yith-wapo-container #wapo-total-price-table {
	background-color: transparent;
	color: rgb(var(--evie-color-on-surface-rgb));
}

div #wapo-total-price-table table {
	font-size: var(--evie-font-size-md);
	line-height: 1.688;
	margin-bottom: 0;
}

#wapo-total-price-table td {
	text-align: right;
}

/* Message */

.yith-wapo-block .yith-wapo-addon.yith-wapo-addon-type-number.numbers-check .options.error-message,
.yith-wapo-block .yith-wapo-addon.yith-wapo-addon-type-number.numbers-check .yith-wapo-numbers-error-message,
.yith-wapo-addon .yith-wapo-option .required-error .required-message,
.yith-wapo-block .yith-wapo-addon .min-error *,
.yith-wapo-addon .options-container .max-selected-error,
.yith-wapo-block .yith-wapo-addon .wapo-error,
.length-error-message,
.yith-wapo-addon.yith-wapo-addon-type-select.required-min .select2-selection.select2-selection--single {
	--yith-wapo-required-option-color: rgb(var(--evie-color-red-rgb));
}

