/* EVC Commerce — stile coerente con il tema (Salient, Poppins/Gantari, pulsanti a pillola neri/grigi). */
.evc-badge{display:inline-block;background:#e9f5ee;color:#1d6b3b;font-size:12px;font-weight:600;padding:3px 10px;border-radius:200px;margin:4px 6px 4px 0}
.evc-avail{display:inline-block;font-size:12px;padding:3px 10px;border-radius:200px;margin:4px 0}
.evc-avail::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:6px;vertical-align:middle;background:currentColor}
.evc-avail--in{color:#1d6b3b;background:#eef8f1}
.evc-avail--incoming{color:#9a5b00;background:#fff4e0}
.evc-avail--out,.evc-avail--request{color:#666;background:#f2f2f2}
.evc-unit-price{font-weight:600}
.evc-from{font-size:.85em;color:#666}
.evc-per1000{font-size:12px;color:#777}
.evc-card{margin-top:8px;font-size:14px}
.evc-card-price{margin:6px 0}
.evc-card-price--quote{color:#666;font-style:italic}
.evc-card-cta{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.evc-btn{display:inline-block;border-radius:200px;padding:9px 22px;font-size:14px;line-height:1.2;text-decoration:none!important;border:1px solid #000;cursor:pointer;transition:all .2s}
.evc-btn--dark{background:#000;color:#fff!important}
.evc-btn--dark:hover{background:#333}
.evc-btn--light{background:#fff;color:#000!important}
.evc-btn--light:hover{background:#f2f2f2}
.evc-btn.loading,.evc-sample-btn.loading{opacity:.6;pointer-events:none}
.evc-online-filter{display:flex;align-items:center;gap:12px;margin:0 0 18px;padding:10px 14px;border:1px solid #e5e5e5;border-radius:10px}
.evc-online-filter__title{font-weight:600}
.evc-online-filter__toggle{display:inline-flex;align-items:center;gap:8px;color:inherit}
.evc-switch{width:34px;height:18px;border-radius:18px;background:#ccc;position:relative;transition:background .2s}
.evc-switch::after{content:"";position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:#fff;transition:left .2s}
.is-on .evc-switch{background:#000}
.is-on .evc-switch::after{left:18px}
.evc-buy{margin:24px 0;padding:20px;border:1px solid #e5e5e5;border-radius:12px;background:#fff}
.evc-buy__hint{color:#777;margin:0}
.evc-buy__price{margin:8px 0 12px}
.evc-buy__price strong{font-size:22px}
.evc-buy__incoming{color:#9a5b00;margin-bottom:8px}
.evc-tiers{width:100%;border-collapse:collapse;margin:8px 0 14px;font-size:14px}
.evc-tiers th{text-align:left;font-weight:600;border-bottom:1px solid #ddd;padding:6px 4px}
.evc-tiers td{padding:7px 4px;border-bottom:1px solid #f0f0f0}
.evc-tiers tr.is-active td{background:#f5f5f5;font-weight:600}
.evc-tiers tr.is-unreachable td{color:#aaa}
.evc-tiers__quote td{color:#666}
.evc-stepper{display:flex;align-items:center;gap:6px;margin:10px 0}
.evc-stepper button{width:36px;height:36px;border-radius:50%;border:1px solid #ccc;background:#fff;cursor:pointer;font-size:18px;line-height:1;padding:0}
.evc-stepper input{width:64px;text-align:center;height:36px;border:1px solid #ccc;border-radius:8px}
.evc-eq{margin-left:8px;color:#555;font-size:14px}
.evc-buy__total{margin:8px 0 14px}
.evc-buy__total strong{font-size:18px}
.evc-buy__bigger{margin:14px 0 6px;font-size:14px}
.evc-buy__info{list-style:none;margin:6px 0 0;padding:0;font-size:13px;color:#666}
.evc-buy__quote{color:#555}
.evc-msg{margin-top:10px;padding:8px 12px;border-radius:8px;font-size:14px}
.evc-msg--ok{background:#eef8f1;color:#1d6b3b}
.evc-msg--err{background:#fdecec;color:#a42222}
.evc-free{font-weight:600;color:#1d6b3b}
.evc-qty-fixed{display:inline-block;min-width:30px}
.evc-minicart .evc-mc-title{font-size:15px;margin:14px 0 6px;text-transform:uppercase;letter-spacing:.04em}
.evc-mc-group--sample{border-top:1px solid #eee;margin-top:10px}
.evc-mc-subtotal{text-align:right;font-size:14px;margin:6px 0}
.evc-mc-bundle{list-style:none;border:1px solid #eee;border-radius:10px;padding:8px;margin:6px 0}
.evc-mc-bundle>ul{margin:6px 0 0;padding:0}
.evc-mc-bundle__head{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;font-size:13px;font-weight:600}
.evc-mc-bundle__total{text-align:right;font-size:13px;margin-top:4px}
.evc-mc-remove-bundle{font-size:12px;font-weight:400;text-decoration:underline}
.evc-mc-limit{margin:4px 0 8px}
.evc-mc-limit__bar{height:6px;border-radius:6px;background:#eee;overflow:hidden}
.evc-mc-limit__bar span{display:block;height:100%;background:#000}
.evc-mc-nexi,.evc-nexi-note{font-size:12px;color:#666}
.evc-config-price{margin:18px 0;padding:16px;border:1px solid #e5e5e5;border-radius:12px}
.evc-cp__lines{list-style:none;margin:8px 0;padding:0;font-size:14px}
.evc-cp__line{display:flex;justify-content:space-between;gap:10px;padding:4px 0;border-bottom:1px solid #f2f2f2}
.evc-cp__line--error,.evc-cp__line--not_purchasable{color:#a42222}
.evc-cp__unit,.evc-cp__total{margin:6px 0}
.evc-cp__na{color:#555;font-size:14px}
body.evc-commerce-preview .evc-buy,body.evc-commerce-preview .evc-config-price{box-shadow:0 0 0 2px #ffd54a}
body.evc-commerce-preview .evc-buy::before,body.evc-commerce-preview .evc-config-price::before{content:"Anteprima e-commerce (solo admin)";display:block;font-size:11px;color:#9a7b00;margin-bottom:8px;text-transform:uppercase;letter-spacing:.05em}
@media (max-width:690px){.evc-card-cta .evc-btn{flex:1;text-align:center}.evc-tiers{font-size:13px}}

/* --- Spalla carrello e righe carrello/checkout (1.0.2) --- */
.evc-thumb{display:flex;align-items:center;justify-content:center;width:72px;height:72px;border-radius:10px;background:#f5f5f5;overflow:hidden;flex:0 0 72px}
.evc-thumb img{max-width:80%!important;max-height:84%!important;width:auto!important;height:auto!important;object-fit:contain;margin:0!important}
.evc-code{display:block;font-size:12px;color:#888;font-weight:400;margin-top:2px}
.nectar-slide-in-cart .evc-mc-item{display:flex!important;align-items:center;gap:14px;padding:14px 0!important;border-bottom:1px solid #eee;list-style:none}
.nectar-slide-in-cart .evc-mc-item .evc-mc-thumb{display:block;flex:0 0 72px;margin:0!important;padding:0!important}
.nectar-slide-in-cart .evc-mc-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;line-height:1.35}
.nectar-slide-in-cart .evc-mc-name,.nectar-slide-in-cart .evc-mc-name a{font-size:15px;font-weight:600;color:#000}
.nectar-slide-in-cart .evc-mc-code{font-size:12px;color:#888}
.nectar-slide-in-cart .evc-mc-meta{font-size:13px;color:#555}
.nectar-slide-in-cart .evc-mc-side{display:flex;flex-direction:column;align-items:flex-end;gap:6px;text-align:right}
.nectar-slide-in-cart .evc-mc-remove{position:static!important;display:inline-flex!important;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:#f2f2f2;color:#555!important;font-size:16px;line-height:1;text-decoration:none!important}
.nectar-slide-in-cart .evc-mc-remove:hover{background:#e2e2e2;color:#000!important}
.nectar-slide-in-cart .evc-mc-group--sample .evc-mc-title{border-top:0}
/* carrello vuoto: messaggio al centro, "Vai ai prodotti" in fondo; nascosti i pulsanti disattivati del tema */
.nectar-slide-in-cart .widget_shopping_cart_content .nectar-inactive{display:none!important}
.nectar-slide-in-cart .evc-mc-empty{display:flex;flex-direction:column;justify-content:space-between;min-height:calc(100vh - 190px);text-align:center}
.nectar-slide-in-cart .evc-mc-empty__body{margin:auto 0}
.nectar-slide-in-cart .evc-mc-empty h3{font-size:22px;margin:16px 0 8px}
.nectar-slide-in-cart .evc-mc-empty p{color:#666;font-size:14px;margin:0}
.nectar-slide-in-cart .evc-mc-empty__icon{display:inline-block;width:56px;height:56px;border-radius:50%;background:#f2f2f2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='1.6'%3E%3Cpath d='M9 3h6v3l1.5 2v11a2 2 0 0 1-2 2h-5a2 2 0 0 1-2-2V8L9 6z'/%3E%3C/svg%3E") center/26px no-repeat}
.nectar-slide-in-cart .evc-mc-empty__btn{display:block!important;width:100%;text-align:center;border-radius:200px!important;background:#000!important;color:#fff!important;padding:16px 20px!important;margin-top:24px}
/* carrello e checkout */
.woocommerce-cart-form .product-thumbnail .evc-thumb,.woocommerce-checkout-review-order .evc-thumb,.shop_table .evc-thumb{width:80px;height:80px}

/* --- Scheda prodotto: "Configura questo prodotto" e "Richiedi un campione" sulla stessa riga, stessa forma (1.0.2).
   Selettori con #ajax-content-wrap per prevalere sulle regole del tema (evcmikcss.css, Salient). --- */
body.single-product #ajax-content-wrap .single_variation_wrap{display:flex;flex-wrap:wrap;align-items:flex-start;gap:14px;margin-top:30px}
body.single-product #ajax-content-wrap .single_variation_wrap>.woocommerce-variation,body.single-product #ajax-content-wrap .single_variation_wrap>.evc-buy{flex:0 0 100%}
body.single-product #ajax-content-wrap .single_variation_wrap>.configuratoreflussotest{flex:0 0 auto}
body.single-product #ajax-content-wrap .single_variation_wrap>.configuratoreflussotest p{margin:0!important;line-height:0!important}
body.single-product #ajax-content-wrap .single_variation_wrap>.configuratoreflussotest a{display:inline-block!important;width:auto!important;line-height:19px!important;vertical-align:top}
body.single-product #ajax-content-wrap .single_variation_wrap .woocommerce-variation-add-to-cart{display:flex!important;flex:0 0 auto;width:auto!important;align-items:center;margin:0!important;padding:0!important}
body.single-product #ajax-content-wrap .single_variation_wrap .woocommerce-variation-add-to-cart .flex-break{display:none!important}
body.single-product #ajax-content-wrap button.evc-sample-btn{display:inline-block!important;width:auto!important;max-width:none!important;height:auto!important;padding:15px 50px!important;border-radius:200px!important;font-family:"Gantari",sans-serif!important;font-size:16px!important;font-weight:400!important;line-height:19px!important;margin:0!important;border:0!important;background:#888888!important;color:#fff!important;text-transform:none!important}
body.single-product #ajax-content-wrap button.evc-sample-btn:hover{background:#999999!important;transform:none!important;box-shadow:none!important}
@media (max-width:690px){
  body.single-product #ajax-content-wrap .single_variation_wrap{flex-direction:column;align-items:stretch}
  body.single-product #ajax-content-wrap .single_variation_wrap .woocommerce-variation-add-to-cart{width:100%!important}
  body.single-product #ajax-content-wrap .single_variation_wrap>.configuratoreflussotest a,body.single-product #ajax-content-wrap button.evc-sample-btn{display:block!important;width:100%!important;text-align:center}
}
