/**
 * Interactive volume and bundle controls.
 */
/* stylelint-disable no-descending-specificity */
.ovio-volume {
	background: linear-gradient(145deg, #f0faf9, #f8fcfb);
	border: 1px solid rgb(79 157 156 / 26%);
	border-radius: 22px;
	box-shadow: 0 12px 30px rgb(37 57 74 / 6%);
	display: grid;
	gap: 0.65rem;
	margin: 0.35rem 0 0;
	padding: clamp(1rem, 3vw, 1.25rem);
}

.ovio-volume legend {
	color: var(--wp--preset--color--secondary);
	float: left;
	font-size: clamp(1.25rem, 3vw, 1.5rem);
	font-weight: 680;
	letter-spacing: -0.03em;
	line-height: 1.12;
	margin-block-end: 0.15rem;
	padding: 0;
	width: 100%;
}

.ovio-volume > p:not(.ovio-volume__copy) {
	display: contents;
}

.ovio-volume > br,
.ovio-volume > p > br,
.ovio-volume__option > br {
	display: none;
}

.ovio-volume__option {
	align-items: center;
	background: rgb(255 255 255 / 90%);
	border: 1px solid #dce5e7;
	border-radius: 17px;
	box-shadow: 0 7px 20px rgb(37 57 74 / 4%);
	cursor: pointer;
	display: grid;
	gap: 0.55rem;
	grid-template-columns: 20px minmax(70px, 1fr) minmax(92px, 110px);
	margin: 0 !important;
	min-height: 76px;
	padding: 0.75rem 0.95rem;
	transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ovio-volume__option:hover {
	border-color: rgb(79 157 156 / 56%);
	transform: translateY(-1px);
}

.ovio-volume__option.is-selected {
	background: #eaf7f6;
	border-color: var(--wp--preset--color--primary-dark);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--primary-dark), 0 10px 24px rgb(79 157 156 / 10%);
}

.ovio-volume__option input {
	accent-color: var(--wp--preset--color--primary-dark);
	height: 18px;
	margin: 0;
	width: 18px;
}

.ovio-volume__option > span,
.ovio-volume__option > strong,
.ovio-volume__option small {
	display: block;
}

.ovio-volume__option > span {
	color: var(--wp--preset--color--secondary);
	font-size: 0.94rem;
	font-weight: 750;
	line-height: 1.25;
	overflow-wrap: normal;
	word-break: normal;
}

.ovio-volume__option .woocommerce-Price-amount,
.ovio-volume__option .woocommerce-Price-currencySymbol {
	display: inline;
}

.ovio-volume__option small {
	color: #53687a;
	font-size: 0.73rem;
	line-height: 1.3;
	margin-block-start: 0.22rem;
}

.ovio-volume__option .ovio-volume__badge {
	background: #e3efef;
	border: 1px solid rgb(79 157 156 / 24%);
	border-radius: 999px;
	color: #32495c;
	display: inline-flex;
	font-size: 0.6rem;
	font-weight: 820;
	letter-spacing: 0.075em;
	line-height: 1;
	padding: 0.3rem 0.5rem;
	text-transform: uppercase;
	width: max-content;
}

.ovio-volume__option.is-selected .ovio-volume__badge {
	background: var(--wp--preset--color--white);
	border-color: rgb(79 157 156 / 42%);
	color: var(--wp--preset--color--primary-dark);
}

.ovio-volume__price {
	color: var(--wp--preset--color--secondary);
	font-size: 1rem;
	font-weight: 780;
	text-align: right;
}

.ovio-volume__price small {
	color: var(--wp--preset--color--primary-dark);
	line-height: 1.3;
}

.ovio-volume__copy {
	clear: both;
	color: #53687a;
	font-size: 0.92rem;
	line-height: 1.5;
	margin: -0.1rem 0 0.25rem;
}

.ovio-volume-mix {
	grid-column: 1 / -1;
	margin-block-start: 0.2rem;
}

.ovio-product-summary form.cart .ovio-volume-mix__toggle {
	align-items: center;
	background: rgb(255 255 255 / 64%) !important;
	border: 1px solid rgb(79 157 156 / 28%) !important;
	border-radius: 12px !important;
	color: var(--wp--preset--color--secondary) !important;
	cursor: pointer;
	display: flex;
	font: inherit;
	font-size: 0.88rem;
	font-weight: 720;
	gap: 0.5rem;
	justify-content: space-between;
	line-height: 1.35;
	min-height: 46px;
	padding: 0.65rem 0.8rem !important;
	text-align: start;
	text-decoration: none;
	width: 100%;
}

.ovio-product-summary form.cart .ovio-volume-mix__toggle:hover,
.ovio-product-summary form.cart .ovio-volume-mix__toggle:focus {
	background: var(--wp--preset--color--white) !important;
	border-color: var(--wp--preset--color--primary-dark) !important;
	color: var(--wp--preset--color--secondary) !important;
}

.ovio-volume-mix__chevron {
	font-size: 1.15rem;
	line-height: 1;
	transition: transform 160ms ease;
}

.ovio-volume-mix__toggle[aria-expanded="true"] .ovio-volume-mix__chevron {
	transform: rotate(180deg);
}

.ovio-volume-mix__toggle:focus-visible {
	box-shadow: 0 0 0 3px rgb(79 157 156 / 24%);
	outline: 0;
}

.ovio-volume-mix__panel {
	background: rgb(255 255 255 / 78%);
	border: 1px solid rgb(79 157 156 / 24%);
	border-radius: 16px;
	display: grid;
	gap: 0.9rem;
	margin-block-start: 0.65rem;
	padding: clamp(0.85rem, 2.5vw, 1.1rem);
}

.ovio-volume-mix__panel[hidden] {
	display: none;
}

.ovio-volume-mix__panel h3,
.ovio-volume-mix__panel > p {
	margin: 0;
}

.ovio-volume-mix__panel h3 {
	color: var(--wp--preset--color--secondary);
	font-size: 1.08rem;
	font-weight: 750;
}

.ovio-volume-mix__panel > p {
	color: #53687a;
	font-size: 0.82rem;
	line-height: 1.45;
}

.ovio-volume-mix__rows {
	display: grid;
	gap: 0.75rem;
}

.ovio-volume-mix__row {
	background: var(--wp--preset--color--white);
	border: 1px solid #dce7e8;
	border-radius: 14px;
	display: grid;
	gap: 0.65rem;
	padding: 0.8rem;
}

.ovio-volume-mix__row [data-volume-mix-label] {
	color: var(--wp--preset--color--secondary);
	font-size: 0.88rem;
	font-weight: 750;
}

.ovio-offer-variation-select {
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	height: 1px !important;
	margin: -1px !important;
	overflow: hidden !important;
	padding: 0 !important;
	position: absolute !important;
	white-space: nowrap !important;
	width: 1px !important;
}

.ovio-offer-attributes {
	display: grid;
	gap: 0.7rem;
}

.ovio-offer-attributes.is-disabled {
	opacity: 0.55;
}

.ovio-offer-attribute {
	border: 0;
	display: grid;
	gap: 0.4rem;
	margin: 0;
	min-width: 0;
	padding: 0;
}

.ovio-offer-attribute legend {
	color: #53687a;
	font-size: 0.69rem;
	font-weight: 780;
	letter-spacing: 0.07em;
	padding: 0;
	text-transform: uppercase;
}

.ovio-offer-attribute__options {
	display: flex;
	flex-wrap: wrap;
	gap: 0.42rem;
}

.ovio-product-page .ovio-offer-attribute__option {
	background: var(--wp--preset--color--white) !important;
	border: 1px solid #cedadd !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	color: var(--wp--preset--color--secondary) !important;
	cursor: pointer;
	flex: 1 0 70px;
	font: inherit;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.2;
	min-height: 36px;
	padding: 0.45rem 0.78rem !important;
	white-space: nowrap;
}

.ovio-product-page .ovio-offer-attribute__option:hover:not(:disabled):not(.is-selected) {
	background: #f2f9f8 !important;
	border-color: var(--wp--preset--color--primary-dark) !important;
	color: var(--wp--preset--color--secondary) !important;
}

.ovio-product-page .ovio-offer-attribute__option.is-selected,
.ovio-product-page .ovio-offer-attribute__option[aria-pressed="true"] {
	background: var(--wp--preset--color--secondary) !important;
	border-color: var(--wp--preset--color--secondary) !important;
	color: var(--wp--preset--color--white) !important;
}

.ovio-product-page .ovio-offer-attribute__option:focus-visible {
	box-shadow: 0 0 0 3px rgb(79 157 156 / 28%) !important;
	outline: 0;
}

.ovio-product-page .ovio-offer-attribute__option:disabled {
	cursor: not-allowed;
	opacity: 0.38;
	text-decoration: line-through;
}

.ovio-volume-mix__summary {
	align-items: baseline;
	border-block-start: 1px solid #dce7e8;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.5rem;
	margin-block-start: 0.05rem;
	padding-block-start: 0.8rem;
}

.ovio-volume-mix__summary-label {
	color: #53687a;
	font-size: 0.78rem;
	margin-inline-end: auto;
}

.ovio-volume-mix__summary del {
	color: var(--wp--preset--color--muted);
	font-size: 0.82rem;
}

.ovio-volume-mix__summary strong {
	color: var(--wp--preset--color--secondary);
	font-size: 1rem;
}

.ovio-volume-mix__summary small {
	color: var(--wp--preset--color--primary-dark);
	flex-basis: 100%;
	font-size: 0.76rem;
	font-weight: 750;
	text-align: end;
}

.ovio-volume-mix__feedback,
.ovio-bundle-feedback {
	color: #9d272d;
	font-size: 0.78rem;
	line-height: 1.4;
}

.ovio-volume-mix__feedback {
	margin: 0.35rem 0 0;
}

.ovio-volume-mix__feedback:empty,
.ovio-bundle-feedback:empty {
	display: none;
}

.ovio-bundle-card.is-disabled {
	opacity: 0.58;
}

.ovio-bundle-card__toggle {
	align-items: center;
	display: flex;
}

.ovio-bundle-card__content {
	min-width: 0;
}

.ovio-bundle-card__content > strong {
	display: block;
	line-height: 1.3;
}

.ovio-bundle-card__options {
	margin-block-start: 0.55rem;
}

.ovio-bundle-card__options .ovio-offer-attributes {
	gap: 0.55rem;
}

.ovio-bundle-feedback {
	grid-column: 1 / -1;
}

@media (max-width: 780px) {

	.ovio-volume-mix__panel {
		border-radius: 14px;
	}

	.ovio-volume-mix__row {
		padding: 0.75rem;
	}

	.ovio-bundle-feedback {
		grid-column: 1;
	}
}
