/**
 * Product option button selectors (Botanical / Warehouse) — site palette.
 */

.cx-product-options {
	--cx-opt-text: var(--global-palette3, #1A202C);
	--cx-opt-muted: var(--global-palette5, #4A5568);
	--cx-opt-border: var(--global-palette7, #EDF2F7);
	--cx-opt-surface: var(--global-palette9, #fff);
	--cx-opt-accent: var(--global-palette1, #f05a24);
	--cx-opt-accent-text: var(--global-palette9, #fff);
	--cx-opt-radius: 10px;

	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0 0 12px;
	width: 100%;
}

.cx-product-options__group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cx-product-options__label {
	font-size: 14px;
	font-weight: 700;
	color: var(--cx-opt-text);
	line-height: 1.3;
}

.cx-product-options__label .required {
	color: var(--cx-opt-accent);
	margin-left: 2px;
}

.cx-product-options__choices {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.cx-product-options__choice {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 88px;
	padding: 12px 18px;
	margin: 0;
	border: 1px solid var(--cx-opt-border);
	border-radius: var(--cx-opt-radius);
	background: var(--cx-opt-surface);
	color: var(--cx-opt-text);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	user-select: none;
	box-shadow: 0 1px 2px rgba(26, 32, 44, 0.04);
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.cx-product-options__choice input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.cx-product-options__choice:hover {
	border-color: var(--cx-opt-accent);
}

.cx-product-options__choice.is-selected,
.cx-product-options__choice:has(input:checked) {
	background: var(--cx-opt-accent);
	border-color: var(--cx-opt-accent);
	color: var(--cx-opt-accent-text);
	box-shadow: 0 2px 8px rgba(240, 90, 36, 0.28);
}

.cx-product-options__qty-head {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 4px;
}

.cx-product-options__qty-note {
	font-size: 13px;
	font-weight: 500;
	color: var(--cx-opt-muted);
	line-height: 1.35;
}

/* Hide duplicate theme "Quantity" label when our head is present */
.cart .cx-product-options + .quantity .screen-reader-text,
.cart .cx-product-options ~ .quantity > label:not(.screen-reader-text) {
	/* keep SR label */
}

form.cart .cx-product-options + .quantity,
form.cart .woocommerce-variation-add-to-cart .cx-product-options + .quantity {
	margin-top: 0;
}

@media (max-width: 480px) {
	.cx-product-options__choice {
		flex: 1 1 calc(50% - 10px);
		min-width: 0;
	}
}
