/* v1.0.0 — Punto 4 QA follow-up: WooCommerce's own inline notices ("Prodotto aggiunto al
   carrello", validation/coupon/checkout errors) are hidden everywhere on the front end;
   notices.js mirrors their text into the toast stack below instead. Same navy/accent language
   as the rest of the plugin's frontend surfaces (checkout.css, account.css). */

.woocommerce-notices-wrapper,
.woocommerce-message,
.woocommerce-error,
.woocommerce-info,
ul.woocommerce-error,
ul.woocommerce-message,
ul.woocommerce-info{
    display:none!important;
}

#sbm-toast-host{
    position:fixed;left:50%;bottom:18px;transform:translateX(-50%);
    z-index:100000;width:calc(100% - 32px);max-width:420px;
    display:flex;flex-direction:column-reverse;gap:10px;
    pointer-events:none;
}
.sbm-toast{
    pointer-events:auto;
    display:flex;align-items:flex-start;gap:10px;
    background:#0F1F3D;color:#fff;border-radius:12px;
    padding:13px 14px;box-shadow:0 10px 30px rgba(15,31,61,.28);
    font:500 14px/1.4 'Inter',system-ui,-apple-system,sans-serif;
    opacity:0;transform:translateY(10px);
    transition:opacity .18s ease,transform .18s ease;
}
.sbm-toast.is-visible{opacity:1;transform:translateY(0)}
.sbm-toast-icon{flex:0 0 auto;width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;margin-top:1px}
.sbm-toast-text{flex:1 1 auto;min-width:0}
.sbm-toast-text a{color:#fff;text-decoration:underline}
.sbm-toast-close{
    flex:0 0 auto;background:transparent;border:0;color:rgba(255,255,255,.7);
    font-size:18px;line-height:1;cursor:pointer;padding:0 0 0 4px;
}
.sbm-toast-close:hover{color:#fff}

.sbm-toast-success{background:#0F1F3D}
.sbm-toast-success .sbm-toast-icon{background:#137333;color:#fff}
.sbm-toast-info{background:#0F1F3D}
.sbm-toast-info .sbm-toast-icon{background:#8a5700;color:#fff}
.sbm-toast-error{background:#7a1f14}
.sbm-toast-error .sbm-toast-icon{background:#b42318;color:#fff}

@media(max-width:480px){
    #sbm-toast-host{width:calc(100% - 20px);bottom:12px}
}
@media(prefers-reduced-motion:reduce){
    .sbm-toast{transition:none}
}
