/*
 * Avvisi WooCommerce su tutto il sito (aggiunto al carrello, errori, informazioni):
 * scheda arrotondata allineata al contenuto, colori del tema, pulsante verde.
 */
.single-product .woocommerce-notices-wrapper,
.woocommerce-shop .woocommerce-notices-wrapper,.tax-product_cat .woocommerce-notices-wrapper{max-width:var(--container,1290px);margin:18px auto 0;padding:0 var(--side-padding,10px)}
.woocommerce-notices-wrapper:empty{display:none}

body .woocommerce-message,
body .woocommerce-info,
body .woocommerce-error{
  display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;position:relative;
  margin:0 0 16px;padding:14px 18px 14px 52px;
  background:var(--mint,#eaf3fa);border:1px solid #d3e4f1;border-radius:14px;
  color:var(--ink,#16191F);font-family:var(--font-jost,inherit);font-size:15px;font-weight:500;line-height:1.45;
  list-style:none;box-shadow:none;
}
body .woocommerce-message::before,
body .woocommerce-info::before,
body .woocommerce-error::before{
  position:absolute;left:18px;top:50%;transform:translateY(-50%);margin:0;
  color:var(--green,#1DA074);font-size:20px;line-height:1;
}
body .woocommerce-message .button,
body .woocommerce-info .button{
  order:2;margin-left:auto;float:none;
  background:var(--green,#1DA074)!important;color:#fff!important;border:0!important;border-radius:10px;
  padding:10px 18px;font-family:inherit;font-weight:700;font-size:14px;line-height:1.2;text-decoration:none;white-space:nowrap;
}
body .woocommerce-message .button:hover,
body .woocommerce-info .button:hover{background:var(--green-d,#178460)!important}
body .woocommerce-message a:not(.button),
body .woocommerce-info a:not(.button){color:var(--green-d,#178460);font-weight:600}

/* Errori: rosso tenue, stesso formato */
body .woocommerce-error{background:#fdf1f0;border-color:#f3cfcc;display:block}
body .woocommerce-error::before{color:#b3261e;top:24px;transform:none}
body .woocommerce-error li{margin:0;padding:2px 0}

@media (max-width:640px){
  body .woocommerce-message,body .woocommerce-info{font-size:14px;padding:12px 14px 12px 44px}
  body .woocommerce-message::before,body .woocommerce-info::before{left:14px;font-size:18px}
  body .woocommerce-message .button,body .woocommerce-info .button{margin-left:0;width:100%;text-align:center}
}
