/* Alexa : vue rapide (module quickview du plugin). Une ligne d'achat : quantité compacte, cœur rond, « Ajouter au panier » sur le reste.
   Préfixe html body : passe devant swe-quickview.css et devant les règles de la fiche produit (la vue rapide s'ouvre aussi sur une fiche). */

html body .swe-qv .swe-qv__buy form.cart.variations_form {
	display: block;
	margin: 0;
}

html body .swe-qv .swe-qv__buy form.cart:not(.variations_form),
html body .swe-qv .swe-qv__buy .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 8px;
	margin: 0;
}

/* Quantité : − 1 + dans une pilule, comme sur la fiche */
html body .swe-qv .swe-qv__buy .quantity {
	display: inline-flex;
	flex: none;
	align-items: center;
	order: 0;
	height: 48px;
	margin: 0;
	border: 1px solid #d4d4da;
	border-radius: 999px;
	background: var(--alx-white);
}

html body .swe-qv .swe-qv__buy .quantity.hidden {
	display: none;
}

html body .swe-qv .swe-qv__buy .quantity input.qty {
	width: 30px;
	min-height: 0;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: var(--alx-ink);
	font-size: 15px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

html body .swe-qv .swe-qv__buy .quantity input.qty::-webkit-outer-spin-button,
html body .swe-qv .swe-qv__buy .quantity input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

html body .swe-qv .swe-qv__buy .quantity .alx-qv-qty-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 34px;
	height: 46px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: none;
	color: var(--alx-ink);
	cursor: pointer;
}

html body .swe-qv .swe-qv__buy .quantity .alx-qv-qty-btn:focus-visible,
html body .swe-qv .swe-qv__buy button.swe-wl-btn:focus-visible,
html body .swe-qv .swe-qv__buy .swe-qv__add:focus-visible,
html body .swe-qv .swe-qv__buy .single_add_to_cart_button:focus-visible {
	outline: 2px solid var(--alx-accent);
	outline-offset: 2px;
}

/* Cœur favoris : bouton rond, icône seule, rempli quand actif */
html body .swe-qv .swe-qv__buy form.cart button.swe-wl-btn {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	order: 1;
	position: relative;
	width: 48px;
	height: 48px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 1px solid #d4d4da;
	border-radius: 50%;
	background: var(--alx-white);
	color: var(--alx-ink);
	box-shadow: none;
	cursor: pointer;
}

html body .swe-qv .swe-qv__buy form.cart button.swe-wl-btn:hover {
	border-color: var(--alx-ink);
	background: var(--alx-white);
}

html body .swe-qv .swe-qv__buy form.cart button.swe-wl-btn svg {
	width: 22px;
	height: 22px;
}

html body .swe-qv .swe-qv__buy form.cart button.swe-wl-btn .swe-wl-btn__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

html body .swe-qv .swe-qv__buy form.cart button.swe-wl-btn.is-active svg {
	fill: var(--alx-promo);
	stroke: var(--alx-promo);
}

/* Ajouter au panier : prend le reste de la largeur */
html body .swe-qv .swe-qv__buy form.cart .single_add_to_cart_button,
html body .swe-qv .swe-qv__buy form.cart button.swe-qv__add {
	display: block;
	flex: 1 1 0;
	order: 2;
	min-width: 0;
	height: 48px;
	min-height: 0;
	margin: 0;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	background: var(--alx-ink);
	color: var(--alx-white);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	transform: none;
}

html body .swe-qv .swe-qv__buy form.cart .single_add_to_cart_button.disabled,
html body .swe-qv .swe-qv__buy form.cart .single_add_to_cart_button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

/* Voir la fiche complète : lien sous la ligne d'achat */
html body .swe-qv .swe-qv__more {
	margin-top: 12px;
}

@media (max-width: 767px) {
	html body .swe-qv .swe-qv__buy form.cart:not(.variations_form),
	html body .swe-qv .swe-qv__buy .woocommerce-variation-add-to-cart {
		padding: 12px 0;
	}
}
