/*
 * Divi DigiMart: Variation selector.
 *
 * Theme.css section 3, and the Variable Products extras. Loads on a variable
 * product while the selector is on.
 *
 * Ported from the QuikNexa child theme's theme.css (Phase 2b, Task 3): qn- became qndm-,
 * its tokens read the panel's (QNDM_Tokens), and the 1280 / 980 / 767 / 480 queries are
 * rewritten by QNDM_Tokens_Compile when the Breakpoint pane differs from Divi's.
 * Generated by tools/theme-css: edit the additions there, not this file.
 */

#et-boc .qndm-var-block:not(:empty),
#et-boc .qndm-var-panel {
	margin-bottom: var(--qndm-sp-5);
}

#et-boc .qndm-var-label {
	margin-bottom: var(--qndm-sp-2);
	font-weight: var(--qndm-fw-semibold);
}

#et-boc .qndm-var-cards {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 110px, 1fr ) );
	gap: var(--qndm-sp-2);
}

#et-boc .qndm-var-cards .qndm-var-option {
	flex-direction: column;
	justify-content: center;
	gap: var(--qndm-sp-1);
	padding: 14px 10px;
	text-align: center;
	font-weight: var(--qndm-fw-semibold);
}

#et-boc .qndm-var-cards .qndm-var-option.is-active {
	background: var(--qndm-tint-8);
	box-shadow: inset 0 0 0 1px var(--qndm-primary);
}

#et-boc .qndm-var-panel {
	border: 1px solid var(--qndm-tint-25);
}

#et-boc .qndm-var-tabs {
	display: flex;
}

#et-boc .qndm-var-tab {
	flex: 1;
	padding: var(--qndm-sp-3) 14px;
	border: 0;
	border-bottom: 1px solid var(--qndm-tint-25);
	background: transparent;
	color: inherit;
	font-weight: var(--qndm-fw-semibold);
	letter-spacing: .5px;
	cursor: pointer;
}

#et-boc .qndm-var-tab.is-active {
	background: var(--qndm-primary);
	border-color: var(--qndm-primary);
	color: var(--qndm-surface);
}

#et-boc .qndm-var-body {
	padding: 14px;
}

#et-boc .qndm-var-list {
	display: grid;
	gap: var(--qndm-sp-2);
}

#et-boc .qndm-var-features {
	margin: 0;
	padding: var(--qndm-sp-1) 14px var(--qndm-sp-4);
	border-top: 1px solid var(--qndm-tint-25);
	list-style: none;
}

#et-boc .qndm-var-features li {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin: 0;
	padding: 7px 0;
	font-size: var(--qndm-fs-base);
	line-height: var(--qndm-lh-base);
	list-style: none;
}

#et-boc .qndm-var-features li::before {
	content: "";
	width: 15px;
	height: 15px;
	flex: none;
	margin-top: 2px;
	background-color: currentColor;
	mask: var(--qndm-mask) center / contain no-repeat;
}

#et-boc .qndm-var-features .is-on {
	--qndm-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
	color: var(--qndm-success);
}

#et-boc .qndm-var-features .is-off {
	--qndm-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
	color: var(--qndm-body);
	text-decoration: line-through;
	text-decoration-color: var(--qndm-border);
	text-decoration-color: color-mix( in srgb, var(--qndm-body) 45%, transparent );
}

#et-boc .qndm-var-features .is-on::before {
	color: var(--qndm-success);
}

#et-boc .qndm-var-option {
	display: flex;
	align-items: center;
	gap: var(--qndm-sp-2);
	border: 1px solid var(--qndm-tint-25);
	cursor: pointer;
}

#et-boc .qndm-var-list .qndm-var-option {
	padding: 10px 14px;
}

#et-boc .qndm-var-option.is-active {
	border-color: var(--qndm-primary);
}

#et-boc .qndm-var-price {
	display: flex;
	align-items: baseline;
	gap: 6px;
	white-space: nowrap;
}

#et-boc .qndm-var-list .qndm-var-price {
	margin-left: auto;
}

#et-boc .qndm-var-price s {
	opacity: .55;
	font-weight: var(--qndm-fw-normal);
}

/* ==========================================================================
   Variable Products pane: term description, duplicate price, From price
   ========================================================================== */

#et-boc .qndm-var-desc {
	margin: var(--qndm-sp-2) 0 0;
	padding: 0;
	color: var(--qndm-body);
	font-size: var(--qndm-fs-sm);
	line-height: var(--qndm-lh-base);
}

#et-boc .qndm-dedupe .woocommerce-variation-price {
	display: none;
}

#et-boc .qndm-from {
	margin-right: var(--qndm-sp-1);
	color: var(--qndm-body);
	font-size: .85em;
	font-weight: var(--qndm-fw-normal);
}
