/* Artolabs License Picker 1.2.2 — simple, sharp, clean. */

.alp-enhanced {
	--alp-radius: 8px;
	--alp-line: rgba(0, 0, 0, 0.15);
	/* Follows the Accent colour of the Kadence theme (Customize > Colors). Falls back to the text colour. */
	--alp-accent: var(--global-palette1, currentColor);
	/* Badge text and outline: the accent, a little darker where the browser can mix it, so it stays easy to read. */
	--alp-accent-text: var(--alp-accent);
}

/* The dropdown row is replaced by the list. */
.alp-enhanced tr.alp-hidden-row,
.alp-enhanced table.variations.alp-hidden-table { display: none !important; }
.alp-enhanced .woocommerce-variation-price { display: none !important; }
/* Themes (Kadence) set an inline display on .quantity, so this needs !important. */
.alp-enhanced.alp-hide-qty .quantity { display: none !important; }
.alp-enhanced.alp-desc-all .woocommerce-variation-description { display: none !important; }

/* Price on the Add to cart button */
.alp-enhanced .single_add_to_cart_button[data-alp-price]::after {
	content: "\00A0\00B7\00A0" attr(data-alp-price);
	white-space: nowrap;
}

.alp-list {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin: 0 0 1.25rem;
}
.alp-list *,
.alp-list *::before,
.alp-list *::after { box-sizing: border-box; }

.alp-list .alp-group-title {
	margin: 0.9rem 0 0.1rem;
	font-size: 0.72rem;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.6;
}
.alp-list .alp-group-title:first-child { margin-top: 0; }

/* Theme-proof: themes often restyle every <button>. */
.alp-list .alp-option {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	min-width: 0;
	min-height: 44px;
	margin: 0;
	padding: 0.5rem 1rem;
	text-align: left;
	background: transparent;
	color: inherit;
	font: inherit;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	border: 1px solid var(--alp-line, rgba(0, 0, 0, 0.15));
	border-radius: var(--alp-radius, 8px);
	box-shadow: none;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}
.alp-list .alp-option:hover,
.alp-list .alp-option:focus {
	background: transparent;
	color: inherit;
	border-color: rgba(0, 0, 0, 0.45);
}
.alp-list .alp-option.is-selected,
.alp-list .alp-option.is-selected:hover,
.alp-list .alp-option.is-selected:focus {
	background: rgba(0, 0, 0, 0.035);
	border-color: var(--alp-accent);
	box-shadow: 0 0 0 1px var(--alp-accent);
}
.alp-list .alp-option:focus-visible {
	outline: 2px solid var(--alp-accent);
	outline-offset: 2px;
}
@supports (background: color-mix(in srgb, red 10%, transparent)) {
	/* Border follows the text colour, so it also shows on dark backgrounds. */
	.alp-enhanced { --alp-line: color-mix(in srgb, currentColor 22%, transparent); }
	.alp-enhanced { --alp-accent-text: color-mix(in srgb, var(--alp-accent) 82%, #000); }
	.alp-list .alp-option:hover,
	.alp-list .alp-option:focus {
		border-color: color-mix(in srgb, var(--alp-accent) 60%, transparent);
	}
	.alp-list .alp-option.is-selected,
	.alp-list .alp-option.is-selected:hover,
	.alp-list .alp-option.is-selected:focus {
		background: color-mix(in srgb, var(--alp-accent) 8%, transparent);
		border-color: var(--alp-accent);
	}
}

.alp-list .alp-radio {
	flex: 0 0 auto;
	position: relative;
	width: 1.1em;
	height: 1.1em;
	border: 2px solid currentColor;
	border-radius: 50%;
	opacity: 0.55;
}
.alp-list .alp-option.is-selected .alp-radio { opacity: 1; border-color: var(--alp-accent); }
.alp-list .alp-option.is-selected .alp-radio::after {
	content: "";
	position: absolute;
	inset: 2px;
	border-radius: 50%;
	background: var(--alp-accent);
}

.alp-list .alp-name {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}
.alp-list .alp-title { font-weight: 500; }
.alp-list .alp-badge {
	display: inline-block;
	margin-left: 0.5rem;
	padding: 0.05rem 0.45rem;
	font-size: 0.68rem;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.02em;
	vertical-align: middle;
	color: var(--alp-accent-text);
	background: transparent;
	border: 1px solid var(--alp-accent-text);
	border-radius: calc(var(--alp-radius, 8px) / 2);
}
.alp-list .alp-desc {
	font-size: 0.82rem;
	line-height: 1.35;
	opacity: 0.65;
}

.alp-list .alp-price {
	flex: 0 0 auto;
	font-weight: 500;
	white-space: nowrap;
}
.alp-list .alp-price .price { color: inherit; font-size: inherit; }
.alp-list .alp-price del { font-weight: 400; font-size: 0.85em; opacity: 0.55; }
.alp-list .alp-price ins { text-decoration: none; background: none; }

@media (prefers-reduced-motion: reduce) {
	.alp-list .alp-option { transition: none; }
}
