/* Barre flottante horizontale en haut de l'écran : panier à gauche, recherche à droite. */
#abfcs-floating-tools{position:fixed;z-index:99990;top:18px;left:20px;right:auto;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px}
#abfcs-floating-tools.abfcs-right{left:auto;right:20px}
#abfcs-floating-tools .abfcs-button{width:54px;height:54px;flex:0 0 54px;border:0;border-radius:14px;display:flex;align-items:center;justify-content:center;background:var(--abfcs-main,#895A8F);color:#000;box-shadow:0 4px 16px rgba(0,0,0,.20);cursor:pointer;transition:transform .18s ease,box-shadow .18s ease}
#abfcs-floating-tools .abfcs-button:hover{transform:translateY(-2px);box-shadow:0 7px 20px rgba(0,0,0,.24)}
#abfcs-floating-tools .abfcs-button:focus-visible,#abfcs-floating-tools button:focus-visible,#abfcs-floating-tools input:focus-visible{outline:3px solid var(--abfcs-accent,#B2CA00);outline-offset:3px}

/* Loupe volontairement plus grande et plus lisible. */
#abfcs-floating-tools .abfcs-search-toggle svg{display:block;width:29px;height:29px;min-width:29px;min-height:29px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}

#abfcs-floating-tools .abfcs-cart-wrap{min-width:0;display:flex;align-items:center;justify-content:center}
#abfcs-floating-tools .wc-block-mini-cart{padding:0!important}
#abfcs-floating-tools .wc-block-mini-cart__button{min-height:54px!important;min-width:0!important;width:auto!important;max-width:min(330px,calc(100vw - 100px));padding:0 15px!important;border-radius:14px!important;background:var(--abfcs-main,#895A8F)!important;color:#000!important;box-shadow:0 4px 16px rgba(0,0,0,.20);display:flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;white-space:nowrap}
#abfcs-floating-tools .wc-block-mini-cart__button:hover{opacity:1!important;transform:translateY(-2px)}
#abfcs-floating-tools .wc-block-mini-cart__icon{fill:none!important;stroke:currentColor!important;width:25px!important;height:25px!important;flex:0 0 25px}
#abfcs-floating-tools .wc-block-mini-cart__badge{background:var(--abfcs-accent,#B2CA00)!important;color:#302330!important;border:0!important;min-width:19px!important;height:19px!important;font-size:11px!important;line-height:19px!important}
#abfcs-floating-tools .wc-block-mini-cart__amount{display:inline-flex!important;align-items:center!important;color:#000!important;font-size:14px!important;font-weight:600!important;white-space:nowrap}
#abfcs-floating-tools .abfcs-cart-fallback{min-height:54px;padding:0 17px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:var(--abfcs-main);color:#000;text-decoration:none}

.abfcs-search-panel{position:absolute;left:0;right:auto;top:calc(100% + 10px);width:min(340px,calc(100vw - 32px));padding:16px;background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:14px;box-shadow:0 8px 30px rgba(0,0,0,.2);color:#292329}
.abfcs-right .abfcs-search-panel{right:0;left:auto}
.abfcs-search-panel[hidden]{display:none!important}
.abfcs-search-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;font-size:16px}
.abfcs-search-close{border:0;background:transparent;font-size:27px;line-height:1;cursor:pointer;color:#555;padding:2px 6px}
.abfcs-search-form{display:flex;flex-direction:column;gap:9px}
.abfcs-search-form input[type=search]{width:100%;min-height:44px;padding:10px 12px;border:1px solid #d8d3d9;border-radius:9px;font-size:16px;box-sizing:border-box}
.abfcs-search-form button{min-height:43px;border:0;border-radius:9px;background:var(--abfcs-main,#895A8F);color:#000;font-weight:600;cursor:pointer;padding:9px 14px}

@media(max-width:600px){
	#abfcs-floating-tools{top:10px;left:10px;right:auto;gap:7px}
	#abfcs-floating-tools.abfcs-right{left:auto;right:10px}
	#abfcs-floating-tools .abfcs-button{width:48px;height:48px;flex-basis:48px;border-radius:12px}
	#abfcs-floating-tools .abfcs-search-toggle svg{width:27px;height:27px;min-width:27px;min-height:27px}
	#abfcs-floating-tools .wc-block-mini-cart__button{min-height:48px!important;padding:0 10px!important;gap:6px!important;border-radius:12px!important;max-width:calc(100vw - 75px)}
	#abfcs-floating-tools .wc-block-mini-cart__icon{width:22px!important;height:22px!important;flex-basis:22px}
	#abfcs-floating-tools .wc-block-mini-cart__amount{font-size:12px!important}
	#abfcs-floating-tools .abfcs-cart-fallback{min-height:48px;padding:0 12px;border-radius:12px}
	.abfcs-search-panel{top:calc(100% + 8px)}
}
