/* PA Shop Builder — variation swatches. */
.pasb-select-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
}
.pasb-swatches {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
}
.pasb-swatch {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--pasb-swatch, 26px);
	height: var(--pasb-swatch, 26px);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 2px;
	background: #ededed;
	color: var(--ast-global-color-1, #5511f8);
	font-size: 13px;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
	transition: box-shadow .15s, opacity .15s, transform .15s;
}
.pasb-swatch:hover { transform: translateY(-1px); }
.pasb-swatch:focus-visible { outline: 2px solid var(--ast-global-color-1, #5511f8); outline-offset: 2px; }
.pasb-swatch--label { padding: 0 8px; }
.pasb-swatch__text { white-space: nowrap; }
.pasb-swatch--color {
	width: var(--pasb-swatch, 26px);
	min-width: 0;
	border-radius: var(--pasb-swatch-radius, 50%);
	background: var(--pasb-c, #ccc);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}
.pasb-swatch--image {
	width: var(--pasb-swatch-img, 65px);
	height: var(--pasb-swatch-img, 65px);
	min-width: 0;
	padding: 2px;
	border-radius: 4px;
	background: #fff;
	box-shadow: inset 0 0 0 1px #ddd;
	overflow: hidden;
}
.pasb-swatch--image img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.pasb-swatch.is-selected { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ast-global-color-1, #5511f8); }
.pasb-swatch--label.is-selected { background: var(--ast-global-color-1, #5511f8); color: #fff; box-shadow: none; }
.pasb-swatch.is-disabled { opacity: .3; cursor: not-allowed; transform: none; }
.pasb-swatch--color.is-disabled::after,
.pasb-swatch--image.is-disabled::after {
	content: "";
	position: absolute;
	left: 50%;
	top: -2px;
	bottom: -2px;
	width: 1px;
	background: #333;
	transform: rotate(45deg);
}

/* tooltip */
.pasb-swatch__tip {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	z-index: 5;
	padding: 4px 8px;
	border-radius: 3px;
	background: #070707;
	color: #fff;
	font-size: 12px;
	line-height: 1.3;
	white-space: nowrap;
	transform: translate(-50%, 4px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .15s, transform .15s;
}
.pasb-swatch__tip::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	margin-left: -4px;
	border: 4px solid transparent;
	border-top-color: #070707;
}
.pasb-swatch:hover .pasb-swatch__tip,
.pasb-swatch:focus-visible .pasb-swatch__tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* product page table layout */
.variations_form table.variations { margin-bottom: 1em; border: 0; }
.variations_form table.variations th,
.variations_form table.variations td { padding: 6px 0; border: 0; vertical-align: middle; background: none; }
.variations_form table.variations th.label,
.variations_form table.variations td.label { padding-right: 24px; font-size: 18px; font-weight: 600; white-space: nowrap; }
.variations_form table.variations .reset_variations { margin-left: 8px; font-size: 13px; }

/* in product cards */
.pasb-swatches--loop {
	justify-content: center;
	gap: 6px;
	margin-top: 5px;
}
.pasb-swatches--loop .pasb-swatch {
	min-width: var(--pasb-swatch-loop, 20px);
	height: var(--pasb-swatch-loop, 20px);
	font-size: 12px;
}
.pasb-swatches--loop .pasb-swatch--label { padding: 0 4px; }
.pasb-swatches--loop .pasb-swatch--color { width: var(--pasb-swatch-loop, 20px); }
.pasb-swatches--loop .pasb-swatch--image { width: calc(var(--pasb-swatch-loop, 20px) + 6px); height: calc(var(--pasb-swatch-loop, 20px) + 6px); padding: 1px; }
.pasb-swatches--loop .pasb-swatch.is-selected { box-shadow: 0 0 0 1px #fff, 0 0 0 3px var(--ast-global-color-1, #5511f8); }
.pasb-swatches--loop .pasb-swatch--label.is-selected { box-shadow: none; }
.pasb-swatch-more {
	display: inline-flex;
	align-items: center;
	height: var(--pasb-swatch-loop, 20px);
	padding: 0 4px;
	color: var(--ast-global-color-3, #454f5e);
	font-size: 12px;
	text-decoration: none !important;
}
