/*
Theme Name: DottCarloValli B2B
Theme URI: https://www.dottcarlovalli.com
Description: Tema custom per area clienti B2B
Author: Dott. Carlo Valli
Version: 1.0
Text Domain: dottcarlovalli-b2b
*/

/* =========================
   Base
   ========================= */

*{ box-sizing: border-box; }

.container{
  width: min(1100px, 92%);
  margin-inline: auto;
  padding: 0;
}

.card{
  display:block;
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  text-decoration:none;
  background:#fff;
}
.card:hover{ border-color: rgba(0,0,0,.18); }

.site-footer{
  border-top:1px solid rgba(0,0,0,.08);
  margin-top:40px;
  padding:18px 0;
}

/* =========================
   Header (B2B)
   ========================= */

/* disattiva qualunque sticky */
header,
.site-header{
  position: static !important;
  top: auto !important;
}

/* wrapper header-inner senza padding laterale */
.header-inner{
  display:block;
  padding: 0 !important;
}


/* barra header full width */
header .nav,
.site-header .nav,
body .nav{
  width: 100% !important;
  margin: 0 !important;
  padding: 24px 0 !important;
}

/* contenitore interno centrato */
header .nav-inner,
.site-header .nav-inner{
  width: min(1100px, 92%);
  margin-inline: auto;
  padding: 0 24px;

  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}


/* logo */
.nav .brand{
  display:flex !important;
  flex-direction:column !important; /* se usi brand-sub sotto */
  text-decoration:none;
  margin:0 !important;
}

.nav .brand img{
  height: 88px !important;
  width: auto !important;
  display:block !important;
  margin:0 !important;
  max-width:none !important;
}

.brand-sub{
  font-size:12px;
  opacity:.7;
}

/* bottone hamburger */
.menu-btn{
  margin: 0;
  position: relative;
  z-index: 1002;
}

/* menu desktop soltanto */
header .nav > nav > ul{
  list-style: none !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 26px !important;
  position: relative !important;
  top: 2px !important;
}

/* link menu desktop */
header .nav > nav > ul > li > a{
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
  padding: 8px 0 !important;
  text-decoration: none;
}

/* menu mobile */
@media (max-width: 900px){

  header{
    position: relative !important;
    z-index: 1000 !important;
  }

  header .container{
    position: static !important;
  }

  header:not(.dcv-public-header) .nav{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  }

  /* Vecchio header B2B: non interferire con il nuovo header pubblico */
  header:not(.dcv-public-header) .nav nav{
  display: none !important;
  }

  header:not(.dcv-public-header) .menu-btn{
  display: block !important;
  }

  .mobile-menu{
    position: fixed !important;
    top: 185px;
    left: 16px;
    right: 16px;
    z-index: 1001 !important;

    background: #fff !important;
    opacity: 1 !important;
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0,0,0,.16);
    padding: 10px 0;

    max-height: calc(100vh - 210px);
    overflow-y: auto;
  }

  .mobile-menu ul{
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    position: static !important;
    top: auto !important;
  }

  .mobile-menu li{
    display: block !important;
    margin: 0 !important;
  }

  .mobile-menu a,
  .mobile-menu ul li a{
    display: block !important;
    padding: 14px 18px !important;
    line-height: 1.2 !important;
    text-decoration: none;
    background: #fff;
  }
}
/* =========================
   Cards (Operazioni rapide) – 2 colonne
   ========================= */

.dcv-b2b .cards,
main .cards{
  display:grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap:16px !important;
}

.dcv-b2b .cards .card,
main .cards .card{
  padding:18px !important;
  text-align:center;
}

/* Mobile: cards in colonna */
@media (max-width: 760px){
  .dcv-b2b .cards,
  main .cards{
    grid-template-columns: 1fr !important;
  }
}

/* =========================
   Dashboard B2B
   ========================= */

main.b2b-dashboard{
  padding:0 !important;
  margin:0 !important;
}

.b2b-dashboard .page-hero{
  padding:32px 0 18px !important;
  margin:0 !important;
}

.b2b-panel{
  background: transparent !important;
  padding: 70px 0 60px !important;
  border-top: 0 !important;
  min-height: auto !important;
}

.b2b-panel .container{
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  padding: 16px;
}

.b2b-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.b2b-grid .card{
  padding:18px;
}

.b2b-next{
  margin-top:22px;
  padding:18px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
}
/* Catalogo B2B */
.b2b-catalogo .section-title{ margin: 0 0 8px; }
.b2b-catalogo .muted{ opacity: .75; margin: 0 0 16px; }


.b2b-catalogo .search button{
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.b2b-catalogo .grid-3{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}


/* =========================================================
   CATEGORIE CATALOGO
   ========================================================= */

.b2b-catalogo .cat-card{
  display:block;
  height:100%;
  color:inherit;
  text-decoration:none;
}

.b2b-catalogo .cat-card .card{
  display:flex;
  flex-direction:column;
  height:100%;
  padding:18px 18px 16px;
  border:1px solid #dfe5ea;
  border-radius:12px;
  background:#fff;
  box-shadow:0 4px 14px rgba(23,35,51,.035);
  transition:
    transform .16s ease,
    border-color .16s ease,
    box-shadow .16s ease;
}

.b2b-catalogo .cat-card .card h2{
  margin:0 0 10px;
  font-size:1.08rem;
  line-height:1.25;
  color:#172333;
}

.b2b-catalogo .cat-card .product-img{
  display:block;
  width:100%;
  height:150px;
  object-fit:contain;
  margin:0 auto 12px;
}

.b2b-catalogo .cat-card .card p{
  margin:auto 0 0;
  color:#687580;
  font-size:.90rem;
  line-height:1.45;
  opacity:1;
}

.b2b-catalogo .cat-card:hover .card{
  transform:translateY(-2px);
  border-color:#9edcf3;
  box-shadow:0 8px 20px rgba(23,35,51,.07);
}

.b2b-catalogo .cat-card:focus-visible{
  outline:none;
}

.b2b-catalogo .cat-card:focus-visible .card{
  border-color:#25afe5;
  box-shadow:0 0 0 2px rgba(37,175,229,.18);
}


/* TABLET */

@media (max-width:900px){

  .b2b-catalogo .grid-3{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

}


/* MOBILE */

@media (max-width:720px){

  .b2b-catalogo .cat-card .card{
    padding:16px;
  }

  .b2b-catalogo .cat-card .product-img{
    height:160px;
  }

}

@media (max-width:560px){

  .b2b-catalogo .grid-3{
    grid-template-columns:1fr;
  }

}

/* =====================================
   STELLE LA MIA LISTA
===================================== */

.dcv-add-my-list{
  background: transparent;
  border: none;
  padding: 0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.dcv-add-my-list:focus{
    outline: none;
}


.dcv-add-my-list.is-saved{
    color:#f5a623;
}
td:last-child .dcv-add-my-list{
    display:flex;
    align-items:center;
    justify-content:center;
}

/* Bottone checkout come bottoni B2B */

.dcv-b2b .checkout-button,
.dcv-b2b .wc-proceed-to-checkout a,
.dcv-b2b a.checkout-button{

  display:inline-flex;
  align-items:center;
  justify-content:center;

  width:100%;
  height:48px;

  border-radius:12px;
  border:0;

  font-weight:700;
  font-size:16px;

  color:#fff !important;

  background:linear-gradient(135deg,var(--accent),var(--accent-strong)) !important;

  box-shadow:0 8px 30px rgba(14,165,233,.25);

  text-decoration:none;
}

/* Quantità carrello come gli altri campi B2B */
body.dcv-b2b.woocommerce-cart table.shop_table.cart td.product-quantity .quantity input.input-text.qty.text{
  width: 70px !important;
  min-width: 70px !important;
  max-width: 70px !important;
  height: 40px !important;
  padding: 6px 8px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(0,0,0,.14) !important;
  background: #fff !important;
  text-align: center !important;
  font: inherit !important;
  line-height: 1 !important;
  color: #0b1020 !important;
  box-shadow: none !important;
  appearance: auto !important;
  -webkit-appearance: auto !important;
}

body.dcv-b2b.woocommerce-cart table.shop_table.cart td.product-quantity .quantity{
  width: 70px !important;
  min-width: 70px !important;
}

body.dcv-b2b.woocommerce-cart table.shop_table.cart td.product-quantity{
  width: 110px !important;
  text-align: center !important;
}

.dcv-first-login-notice{
border:1px solid #bfe3f6;
background:#eef8fd;
color:#10243e;
padding:14px 16px;
margin:0 0 18px;
border-radius:12px;
font-size:14px;
line-height:1.5;
}

/* =========================================================
   PRIMO ACCESSO B2B
   ========================================================= */

.dcv-first-access-page{
  background: var(--bg);
  padding: 0 0 60px;
}

.dcv-first-access-hero{
  padding: 32px 0 18px;
}

.dcv-first-access-hero__inner{
  max-width: 820px;
}

.dcv-first-access-kicker{
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #5b6b82;
}

.dcv-first-access-hero h1{
  margin: 0 0 10px;
  font-size: 42px;
  line-height: 1.05;
  color: #0f172a;
}

.dcv-first-access-subtitle{
  margin: 0;
  max-width: 720px;
  font-size: 18px;
  line-height: 1.5;
  color: #475569;
}

.dcv-first-access-section{
  padding: 12px 0 0;
}

.dcv-first-access-card{
  max-width: 760px;
  margin: 0 auto;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 12px 34px rgba(15,23,42,.10);
}

.dcv-first-access-card__intro{
  margin-bottom: 20px;
}

.dcv-first-access-card__intro h2{
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.1;
  color: #111827;
}

.dcv-first-access-card__intro p{
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

.dcv-first-access-form{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dcv-first-access-field{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dcv-first-access-field label{
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

.dcv-first-access-field input{
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(14,165,233,.22);
  background: rgba(14,165,233,.08);
  color: #0b1220;
  padding: 0 14px;
  box-sizing: border-box;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.dcv-first-access-field input:focus{
  border-color: rgba(14,165,233,.38);
  box-shadow: 0 0 0 4px rgba(56,189,248,.14);
}

.dcv-first-access-note{
  border: 1px solid #d9ebf7;
  background: #f4fafe;
  color: #486276;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
}

.dcv-first-access-actions{
  padding-top: 4px;
}

.dcv-first-access-actions button{
  min-width: 190px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 8px 30px rgba(14,165,233,.25);
  font-size: 15px;
  font-weight: 700;
}

.dcv-first-access-alert{
  border-radius: 14px;
  padding: 14px 16px;
  line-height: 1.55;
  font-size: 15px;
}

.dcv-first-access-alert--error{
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
}

.dcv-first-access-alert--success{
  background: #ecfdf3;
  border: 1px solid #b7ebc6;
  color: #166534;
}

.dcv-first-access-login-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff !important;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 8px 22px rgba(14,165,233,.22);
}

@media (max-width: 768px){
  .dcv-first-access-hero h1{
    font-size: 34px;
  }

  .dcv-first-access-subtitle{
    font-size: 16px;
  }

  .dcv-first-access-card{
    padding: 22px 18px;
    border-radius: 18px;
  }

  .dcv-first-access-card__intro h2{
    font-size: 24px;
  }

  .dcv-first-access-actions button,
  .dcv-first-access-login-link{
    width: 100%;
  }
}


/* --------------------------------------------------
   DASHBOARD
-------------------------------------------------- */

body.page-template .dcv-b2b-home-hero{
  padding:40px 0 18px;
}

body.page-template .dcv-b2b-home-hero h1{
  margin:0 0 14px;
  font-size:52px;
  line-height:1.02;
  letter-spacing:-0.02em;
  color:#0f172a;
}

body.page-template .dcv-b2b-home-hero p{
  max-width:920px;
  margin:0 0 26px;
  font-size:22px;
  line-height:1.55;
  color:#334155;
}

.dcv-b2b-home-actions{
  margin-bottom:8px;
}

.dcv-b2b-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 24px;
  border-radius:999px;
  background:linear-gradient(180deg, #28b7ef 0%, #18a7df 100%);
  color:#fff !important;
  text-decoration:none;
  font-weight:700;
  font-size:17px;
  line-height:1;
  box-shadow:0 8px 18px rgba(32, 174, 229, .18);
  transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.dcv-b2b-btn:hover{
  opacity:1;
  transform:translateY(-1px);
  box-shadow:0 12px 22px rgba(32, 174, 229, .22);
}

.dcv-b2b-btn-secondary{
  background:#eef2f7;
  color:#0f172a !important;
  box-shadow:none;
}

.dcv-b2b-btn-secondary:hover{
  background:#e5ebf3;
  box-shadow:none;
}

.dcv-b2b-home-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:26px;
  margin-top:28px;
  align-items:stretch;
}

.dcv-b2b-home-card{
  background:#ffffff;
  border:1px solid #e3edf5;
  border-radius:28px;
  padding:30px 28px;
  box-shadow:0 14px 34px rgba(15,23,42,.06);
  display:flex;
  flex-direction:column;
  min-height:430px;
}

.dcv-b2b-home-card h2{
  margin:0 0 16px;
  font-size:28px;
  line-height:1.1;
  letter-spacing:-0.02em;
  color:#0f172a;
}

.dcv-b2b-home-card p{
  margin:0 0 18px;
  font-size:18px;
  line-height:1.55;
  color:#475569;
}

.dcv-b2b-home-list{
  margin:0 0 24px 20px;
  padding:0;
  color:#475569;
  font-size:16px;
  line-height:1.65;
}

.dcv-b2b-home-list li{
  margin-bottom:8px;
}

.dcv-b2b-home-orders{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-bottom:22px;
}

.dcv-b2b-home-order-row{
  display:flex;
  justify-content:space-between;
  gap:18px;
  padding:10px 0 12px;
  border-bottom:1px solid #e7edf4;
}

.dcv-b2b-home-order-left,
.dcv-b2b-home-order-right{
  display:flex;
  flex-direction:column;
  gap:3px;
  font-size:16px;
  color:#334155;
}

.dcv-b2b-home-order-left strong,
.dcv-b2b-home-order-right strong{
  font-size:17px;
  color:#0f172a;
}

.dcv-b2b-home-order-right{
  text-align:right;
}

.dcv-b2b-home-promo-list{
  margin:0 0 22px 18px;
  padding:0;
  color:#475569;
  font-size:16px;
  line-height:1.65;
}

.dcv-b2b-home-card .dcv-b2b-btn{
  margin-top:auto;
  align-self:flex-start;
}

.dcv-b2b-home-login{
  max-width:760px;
  margin:0 auto 40px;
}

@media (max-width: 1100px){
  .dcv-b2b-home-grid{
    grid-template-columns:1fr;
  }

  .dcv-b2b-home-card{
    min-height:auto;
  }

  body.page-template .dcv-b2b-home-hero h1{
    font-size:40px;
  }

  body.page-template .dcv-b2b-home-hero p{
    font-size:20px;
  }
}
.dcv-b2b-home-card .dcv-b2b-home-promos{
  display:flex !important;
  flex-direction:column !important;
  gap:14px !important;
}

.dcv-b2b-home-card .dcv-b2b-home-promo-item{
  display:block !important;
  padding:0 0 12px 0 !important;
   border-bottom:1px solid rgba(15,23,42,.05) !important;
}

.dcv-b2b-home-card .dcv-b2b-home-promo-item:last-child{
  border-bottom:none !important;
  padding-bottom:0 !important;
}

.dcv-b2b-home-card .dcv-b2b-home-promo-badge{
  display:inline-block !important;
  background:#e53935 !important;
  color:#fff !important;
  font-size:12px !important;
  font-weight:700 !important;
  line-height:1 !important;
  padding:5px 8px !important;
  border-radius:999px !important;
  margin:0 0 8px 0 !important;
}

.dcv-b2b-home-card .dcv-b2b-home-promo-name{
  display:block !important;
  font-size:16px !important;
  font-weight:700 !important;
  line-height:1.3 !important;
  color:#0f172a !important;
  margin:0 0 2px 0 !important;
}

.dcv-b2b-home-card .dcv-b2b-home-promo-prices{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  flex-wrap:wrap !important;
}

.dcv-b2b-home-card .dcv-b2b-home-promo-old,
.dcv-b2b-home-card .dcv-b2b-home-promo-old .woocommerce-Price-amount{
  color:#64748b !important;
  text-decoration:line-through !important;
  font-size:14px !important;
  line-height:1.2 !important;
}

.dcv-b2b-home-card .dcv-b2b-home-promo-new,
.dcv-b2b-home-card .dcv-b2b-home-promo-new .woocommerce-Price-amount{
  color:#e53935 !important;
  font-size:18px !important;
  font-weight:800 !important;
  line-height:1.2 !important;
}


.dcv-b2b-home-promo-new{
  font-size:18px;
}


.dcv-b2b-home-promos{
  display:flex;
  flex-direction:column;
  gap:14px;
}


.dcv-b2b-home-promo-item:last-child{
  border-bottom:none;
  padding-bottom:0;
}


.dcv-b2b-home-promo-prices{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:8px;

  
  
  
  gap:10px;
  flex-wrap:wrap;
  text-align:right;
}

.dcv-b2b-home-promo-old,
.dcv-b2b-home-promo-old .woocommerce-Price-amount{
  color:#64748b;
  text-decoration:line-through;
  font-size:14px;
  line-height:1.2;
}

.dcv-b2b-home-promo-new,
.dcv-b2b-home-promo-new .woocommerce-Price-amount{
  color:#e53935;
  font-size:18px;
  font-weight:800;
  line-height:1.2;
}
.dcv-b2b-home-promo-img img{
  width:100%;
  height:100%;
  object-fit:contain;
  
  border-radius:4px;
}

.dcv-b2b-home-promo-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 0;
  border-bottom:1px solid rgba(15,23,42,.05);

  
  
  gap:14px;
  
}


.dcv-b2b-home-promo-old{
  font-size:13px;

  
}


/* ===== B2B PROMOZIONI PAGE ===== */

main.dcv-b2b.container.b2b-promotions-page{
  padding: 24px 0 20px 0 !important;
}

.b2b-promotions-page h1{
  margin-bottom: 22px;
}


.b2b-promo-discount{
  background: #e53935;
  color: #fff;
  display: inline-block;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 12px;
  margin-bottom: 6px;
}

.b2b-promo-prices .old{
  text-decoration: line-through;
  color: #777;
  margin-right: 6px;
}

.b2b-promo-prices .new{
  color: #e53935;
  font-weight: 700;
  font-size: 18px;
}


.b2b-add-to-cart:hover{
  opacity: .9;
}

footer,
.site-footer,
footer.site-footer{
  margin-top: 40px !important;
}

@media (max-width: 640px){
  .b2b-promotions-grid{
    grid-template-columns:1fr;
  }
}


/* Rimuovi prodotto - stile come carrello WooCommerce */
.dcv-mylist-table .cart-remove-like{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border:none;
  background:transparent;
  color:#b40000;
  font-size:24px;
  line-height:1;
  font-weight:700;
  cursor:pointer;
  padding:0;
  box-shadow:none;
  border-radius:50%;
  transition:all .2s ease;
}

.dcv-mylist-table .cart-remove-like:hover{
  background:#b40000;
  color:#fff;
  transform:none;
}

.dcv-mylist-table .cart-remove-like:focus{
  outline:none;
  box-shadow:none;
}

.dcv-mylist-table .cart-remove-like:focus-visible{
  outline:none;
  box-shadow:none;
}

/* Bottone checkout - stile B2B */
.wc-block-components-checkout-place-order-button,
button.wc-block-components-checkout-place-order-button,
.wp-element-button.wc-block-components-checkout-place-order-button{
    
    background:#2daae1 !important;
    border:none !important;
    border-radius:20px !important;
    color:#fff !important;

    padding:10px 26px !important;
    font-size:15px !important;
    font-weight:600 !important;

    cursor:pointer;
    transition:all .2s ease;
}

/* hover come gli altri bottoni */
.wc-block-components-checkout-place-order-button:hover{
    background:#2496c9 !important;
}

/* =========================================================
   TASTO RIORDINA MERCE NEGLI ORDINI RECENTI
   ========================================================= */

   .dcv-order-actions{
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}

.dcv-btn.dcv-btn--primary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: .2s ease;
}

.dcv-btn.dcv-btn--primary:hover{
  transform: translateY(-1px);
}
.b2b-order-actions{
  margin-top:20px;
  display:flex;
  justify-content:flex-end;
}

.b2b-btn-reorder{
  background:#2fa4da;
  color:#fff;
  border-radius:26px;
  padding:12px 22px;
  font-weight:600;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:all .2s ease;
}

.b2b-btn-reorder:hover{
  background:#238ac0;
  transform:translateY(-1px);
}
/* =========================================================
   POP-UP IMMAGINI LA MIA LISTA
   ========================================================= */
.b2b-thumb.is-clickable{
  cursor: zoom-in;
}

.b2b-img-modal{
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.b2b-img-modal[hidden]{
  display: none !important;
}

.b2b-img-modal__backdrop{
  position: fixed;
  inset: 0;
  background: rgba(16,24,40,.55);
}

.b2b-img-modal__dialog{
  position: relative;
  width: min(960px, calc(100vw - 40px));
  max-height: 90vh;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
  z-index: 2;
}

.b2b-img-modal__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #dff0fb;
  font-weight: 700;
}

.b2b-img-modal__close{
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex: 0 0 42px;
  font-size: 0;
  line-height: 0;
  color: transparent;
}

.b2b-img-modal__close::before{
  content: "×";
  color: #111;
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
  display: block;
}

.b2b-img-modal__close:hover{
  background: #f1f5f9;
}

.b2b-img-modal__body{
  padding: 24px;
  text-align: center;
}

.b2b-img-modal__img{
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.b2b-promo-img{
  height: 200px;
  object-fit: contain;
  margin-bottom: 10px;

  cursor: zoom-in;
}

.b2b-promotions-page img.b2b-thumb{
  width: 200px !important;
  height: 200px !important;
  object-fit: contain;
  margin: 0 auto 12px;
  display:block;
  margin-bottom:16px !important;
}

.b2b-promo-spacer{
  height:24px;
}

/* =================================
CHECKOUT B2B
================================= */

.dcv-b2b-checkout-page{
    padding:40px 0 60px;
}


/* card */


/* riepilogo ordine */

.dcv-b2b-side-title{
    font-size:18px;
    font-weight:600;
    margin-bottom:16px;
}

/* bottone ordine */


/* responsive */

/* larghezza checkout */

.dcv-b2b-checkout-page .container{
    max-width:1200px;
    margin:0 auto;
}

/* forza larghezza campi */


/* spazio tra campi */


/* riepilogo ordine */

.dcv-b2b-order-review-card table{
    width:100%;
}

/* bottone ordine */


/* =================================================
CHECKOUT B2B LAYOUT
================================================= */

/* layout generale checkout */

.dcv-b2b-checkout-layout{
    display:grid;
    grid-template-columns:420px 420px;
    gap:32px;

    
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    gap:24px;
    align-items:start;
}

/* card */


/* griglia campi fatturazione */

.dcv-b2b-checkout-main .woocommerce-billing-fields__field-wrapper,
.dcv-b2b-checkout-main .woocommerce-shipping-fields__field-wrapper{
    display:grid;
    grid-template-columns:1fr 1fr;
    column-gap:16px;
    row-gap:14px;
}

/* campi che devono occupare tutta la riga */

.dcv-b2b-checkout-main #billing_country_field,
.dcv-b2b-checkout-main #billing_address_1_field,
.dcv-b2b-checkout-main #billing_address_2_field,
.dcv-b2b-checkout-main #billing_state_field,
.dcv-b2b-checkout-main #billing_email_field,
.dcv-b2b-checkout-main #order_comments_field,
.dcv-b2b-checkout-main #shipping_country_field,
.dcv-b2b-checkout-main #shipping_address_1_field,
.dcv-b2b-checkout-main #shipping_address_2_field,
.dcv-b2b-checkout-main #shipping_state_field{
    grid-column:1 / -1;
}

/* WooCommerce di default mette float sui campi */

.dcv-b2b-checkout-main .form-row-first,
.dcv-b2b-checkout-main .form-row-last,
.dcv-b2b-checkout-main .form-row-wide{
    width:100% !important;
    float:none !important;
    clear:none !important;
    margin:0 !important;
}

/* spaziatura campi */

.dcv-b2b-checkout-main .form-row{
    width:100% !important;

    margin-bottom:14px;

    margin-bottom:0 !important;
}

/* input */

.dcv-b2b-checkout-main input,
.dcv-b2b-checkout-main select,
.dcv-b2b-checkout-main textarea{
    width:100% !important;

    
    box-sizing:border-box;
}

/* riepilogo ordine */

.dcv-b2b-checkout-side{
    position:sticky;
    top:20px;
}

/* bottone ordine */


/* responsive */

@media(max-width:1020px){

    .dcv-b2b-checkout-layout{
        grid-template-columns:1fr;
    }

}

/* =========================================================
   CHECKOUT B2B
   ========================================================= */

body.woocommerce-checkout .dcv-b2b-checkout-page{
    max-width:1120px;
    margin:0 auto;
    padding:36px 24px 60px;
}

.dcv-b2b-checkout-hero{
    margin-bottom:30px;

    margin-bottom:28px;
}

.dcv-b2b-checkout-title{
    font-size:32px;
    font-weight:700;
    margin-bottom:8px;

    
    
    margin:0 0 6px;
}

.dcv-b2b-checkout-intro{
    color:#6b7280;

    margin:0;
    
}

.dcv-b2b-checkout-single{
    max-width:1120px;
    margin:0 auto;
}

.dcv-b2b-card{
    background:#fff;
    border-radius:14px;
    box-shadow:0 6px 18px rgba(0,0,0,0.06);
    margin-bottom:20px;

    
    
    

    
    
    box-shadow:0 6px 18px rgba(0,0,0,.06);
    margin-bottom:26px;
}

.dcv-b2b-card__inner{
    padding:26px;

    

    padding:28px 32px;
}

.dcv-b2b-checkout-section-title{
    font-size:20px;
    font-weight:600;
    margin:0 0 18px;
}

/* nasconde titoli duplicati WooCommerce */
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout .woocommerce-additional-fields h3{
    display:none;
}

/* nasconde campi non voluti */
#billing_country_field,
#billing_address_2_field{
    display:none !important;
}

/* griglia campi */
.woocommerce-billing-fields__field-wrapper{
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1fr;
    column-gap:14px;
    row-gap:8px;
    max-width:900px;
}

/* reset WooCommerce */
.woocommerce-billing-fields__field-wrapper .form-row-first,
.woocommerce-billing-fields__field-wrapper .form-row-last,
.woocommerce-billing-fields__field-wrapper .form-row-wide,
.woocommerce-additional-fields .form-row-wide{
    width:100% !important;
    float:none !important;
    clear:none !important;
    margin:0 !important;
    padding:0 !important;
}

/* riga 1: ragione sociale - nome - cognome */
#billing_company_field{
    grid-column:1 / span 2;
}


/* riga 2: via - cap - città - provincia */


/* riga 3: telefono - email */


/* note */


/* spaziatura verticale compatta */
.woocommerce-checkout .form-row{
    margin:0 !important;
    padding:0 !important;
}

.woocommerce-checkout label{
    display:block;
    margin-bottom:2px !important;
    font-size:13px;
    line-height:1.15;
}

/* input */
.woocommerce-checkout input.input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea{
    width:100%;
    box-sizing:border-box;
    font-size:14px;
    padding:8px 10px;
    margin:0 !important;
}

.woocommerce-checkout input.input-text,
.woocommerce-checkout select{
    height:38px;
}

#order_comments{
    min-height:88px;
    resize:vertical;
    margin-top:2px !important;
}

/* riepilogo ordine */
.dcv-b2b-checkout-review .woocommerce-checkout-review-order-table{
    width:100%;
    border-collapse:collapse;
    font-size:14px;
}

.dcv-b2b-checkout-review .woocommerce-checkout-review-order-table th{
    text-align:left;
    padding:12px 14px;
    background:#eaf4fb;
}

.dcv-b2b-checkout-review .woocommerce-checkout-review-order-table td{
    padding:12px 14px;
    border-top:1px solid #e5e7eb;
}

.dcv-b2b-checkout-review .order-total td{
    font-weight:700;
}

/* pagamento */
#payment{
    margin-top:18px;
}

#payment ul.payment_methods{
    margin:0 0 16px;
    padding:0;
}

#payment .wc_payment_method{
    padding:12px 0;
}

#place_order{
    background:#4f46e5 !important;
    border-radius:8px !important;
    padding:12px 22px !important;
    font-weight:600 !important;

    width:100%; 

    
    
    
    
    

    
    border:none;
    border-radius:8px;
    padding:14px;
    font-weight:600;
}

/* mobile */
@media (max-width:900px){
    .dcv-b2b-card__inner{
        padding:22px 18px;
    }

    .woocommerce-billing-fields__field-wrapper{
        grid-template-columns:1fr;
        max-width:100%;
    }

    #billing_company_field,
    #billing_first_name_field,
    #billing_last_name_field,
    #billing_address_1_field,
    #billing_postcode_field,
    #billing_city_field,
    #billing_state_field,
    #billing_phone_field,
    #billing_email_field,
    #order_comments_field{
        grid-column:auto;
    }
}

/* ordine visivo corretto dei campi checkout */
#billing_first_name_field{
    grid-column:3;
 order: 1; }
#billing_last_name_field{
    grid-column:4;
 order: 2; }

#billing_address_1_field{
    grid-column:1;
 order: 3; }
#billing_postcode_field{
    grid-column:2;
 order: 4; }
#billing_city_field{
    grid-column:3;
 order: 5; }
#billing_state_field{
    grid-column:4;
 order: 6; }

#billing_phone_field{
    grid-column:1;
 order: 7; }
#billing_email_field{
    grid-column:2 / span 3;
 order: 8; }

#order_comments_field{
    grid-column:1 / -1;
    max-width:900px;
 
    order: 9;
    margin-top: 8px !important;
}


/* Toglie l'* in ragione sociale del checkput */
#billing_company_field .required{
    display:none;
}
/* =========================================================
   CHECKOUT B2B - payment box più compatto + bottone come carrello
   ========================================================= */

/* box pagamento */


/* lista metodi */


/* meno spazio tra un metodo e l'altro */


.woocommerce-checkout #payment .wc_payment_method + .wc_payment_method{
    border-top:1px solid #e7e2ec;
}

/* radio + label */


/* descrizione metodo aperto */


/* blocco privacy / termini */


.woocommerce-checkout #payment .woocommerce-privacy-policy-text{
    margin:0 0 12px 0 !important;
    font-size:14px;
    line-height:1.45;
}

.woocommerce-checkout #payment .validate-required{
    margin:0 0 12px 0 !important;
}

/* bottone finale come il carrello */
.woocommerce-checkout #payment #place_order{
    width:100%;
    height:48px;
    border:none !important;
    border-radius:12px !important;
    background:linear-gradient(90deg, #2db4ea 0%, #1fa3df 100%) !important;
    color:#fff !important;
    font-size:16px;
    font-weight:700;
    box-shadow:none !important;
    text-transform:none;
    letter-spacing:0;
}

/* hover */
.woocommerce-checkout #payment #place_order:hover{
    opacity:.96;
}

/* eventuale wrapper del bottone */
.woocommerce-checkout #payment .place-order .button{
    margin-top:0 !important;
}
/* Dashboard B2B - uniforma bottone "Vedi ordini" */
.dcv-b2b-home .dcv-b2b-btn-secondary{
    background: #27aae1;
    color: #fff !important;
    border: none;
}

.dcv-b2b-home .dcv-b2b-btn-secondary:hover{
    background: #1f9bd0;
    color: #fff !important;
}


/* =========================
   B2B — unità / cartoni
   ========================= */

.b2b-qty-hint{
  font-size:11px;
  color:#777;
  margin-top:4px;
  line-height:1.1;
  text-align:center;
}

.b2b-col-unit .b2b-unit{
  font-weight:600;
  line-height:1.2;
}

.b2b-col-unit .b2b-cartoni{
  display:block;
  margin-top:2px;
  font-size:12px;
  line-height:1.2;
  color:#6b7280;
  white-space:nowrap;
}

.b2b-cartoni{
  font-size:12px;
  line-height:1.2;
  color:#6b7280;
  white-space:nowrap;
}

/* =========================
   B2B — promo cards
   ========================= */

.b2b-promo-actions{
  margin-bottom:14px;
}

.b2b-promo-pack{
  margin-top:12px;
  font-size:12px;
  line-height:1.2;
  color:#6b7280;
  text-align:center;
  white-space:nowrap;
}


/* La mia lista: allineamento header colonne finali */
.dcv-mylist-table thead th:nth-child(4),
.dcv-mylist-table thead th:nth-child(5),
.dcv-mylist-table thead th:nth-child(6){
  position: static;
  padding-left: 10px;
}

.dcv-mylist-table thead th:nth-child(4){ padding-left: 24px; } /* Prezzo */
.dcv-mylist-table thead th:nth-child(5){ padding-left: 16px; } /* Unità */
.dcv-mylist-table thead th:nth-child(6){ padding-left: 28px; } /* Q.tà */


/* =========================
   CHECKOUT REVIEW CUSTOM B2B
   ========================= */

.dcv-b2b-review{
  display:flex;
  flex-direction:column;
  gap:24px;
}


.dcv-b2b-review-table{
  width:100%;
  border-collapse:collapse;
  font-size:14px;
  background:#fff;
  border:1px solid #dbe5ee;
  border-radius:16px;
  overflow:hidden;
}

.dcv-b2b-review-table thead th{
  background:#eaf4fb;
  padding:14px 16px;
  text-align:left;
  font-weight:700;
  color:#42526b;
  border-bottom:1px solid #dbe5ee;
}


.dcv-col-foto{
  width:90px;
}

.dcv-col-qta,
.dcv-col-prezzo,
.dcv-col-subtotale{
  text-align:center;
  white-space:nowrap;
}

.dcv-b2b-review-thumb-wrap{
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.dcv-b2b-review-thumb{
  max-width:40px;
  max-height:40px;
  object-fit:contain;
  display:block;
}

.dcv-b2b-review-product-name{
  font-weight:600;
  color:#111827;
}

.dcv-b2b-totals-box{
  width:100%;
  max-width:420px;
  margin-left:auto;
}

.dcv-b2b-totals-title{
  margin:0 0 12px;
  font-size:18px;
  font-weight:700;
  color:#0f172a;
}


.dcv-b2b-totals-table th,
.dcv-b2b-totals-table td{
  padding:14px 16px;
  border-top:1px solid #e5e7eb;
}

.dcv-b2b-totals-table tr:first-child th,
.dcv-b2b-totals-table tr:first-child td{
  border-top:none;
}

.dcv-b2b-totals-table th{
  text-align:left;
  background:#eaf4fb;
  width:60%;
}


.dcv-b2b-totals-table .order-total th,
.dcv-b2b-totals-table .order-total td{
  font-weight:800;
}

@media (max-width: 900px){
  .dcv-b2b-review-table{
    min-width:760px;
  }

  .dcv-b2b-totals-box{
    max-width:100%;
    margin-left:0;
  }
}
/* allineamento colonne numeriche riepilogo ordine */
.dcv-b2b-review-table .dcv-col-qta,
.dcv-b2b-review-table .dcv-col-prezzo,
.dcv-b2b-review-table .dcv-col-subtotale,
.dcv-b2b-review-table td.dcv-col-qta,
.dcv-b2b-review-table td.dcv-col-prezzo,
.dcv-b2b-review-table td.dcv-col-subtotale{
  width: 120px;
  text-align: right;
  white-space: nowrap;
}

.dcv-b2b-review-table .dcv-col-qta,
.dcv-b2b-review-table td.dcv-col-qta{
  width: 90px;
}

/* box totali: cifre allineate bene */
.dcv-b2b-totals-table td{
  text-align:right;
  white-space:nowrap;
  font-weight:600;

  width: 170px;
  
  
}


/* Allineamento perfetto numeri (ultimo 5%) */

.dcv-b2b-review-table td{
  padding:14px 16px;
  border-top:1px solid #e5e7eb;
  vertical-align:middle;

  
}

.dcv-b2b-review-table .dcv-col-prezzo,
.dcv-b2b-review-table .dcv-col-subtotale{
  font-variant-numeric: tabular-nums;
}
.dcv-b2b-totals-table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  border:1px solid #dbe5ee;
  border-radius:16px;
  overflow:hidden;

  border-radius:12px;
  
}

.dcv-b2b-totals-table tr:last-child td{
  font-weight:700;
  font-size:16px;
}
.dcv-b2b-review-table-wrap{
  width:100%;
  overflow-x:auto;

  margin-bottom:20px;
}


/* checkout - metodi pagamento ancora più compatti */
.woocommerce-checkout #payment{
    background:#f3eef7;
    border-radius:10px;
    padding:14px 0 0;
    overflow:hidden;

    padding: 8px 0 0 !important;
}

.woocommerce-checkout #payment ul.payment_methods{
    margin:0;
    padding:0 0;
    border-bottom:1px solid #e4ddea;

    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-checkout #payment ul.payment_methods li{
    margin:0 !important;
    padding:14px 16px !important;

    
    padding: 8px 12px !important;
}

.woocommerce-checkout #payment .wc_payment_method{
    margin:0 !important;

    
    padding: 2px 0 !important;
    min-height: auto !important;
    line-height: 1.1 !important;
}

.woocommerce-checkout #payment .wc_payment_method > label{
    display:inline-block;
    margin:0 !important;
    line-height:1.35;
    font-weight:500;

    
    padding: 0 !important;
    line-height: 1.1 !important;
}

.woocommerce-checkout #payment div.payment_box{
    margin:8px 0 0 24px !important;
    padding:12px 14px !important;
    border-radius:8px;
    background:#ece6f1 !important;
    font-size:14px;

    margin: 2px 0 0 18px !important;
    padding: 4px 8px !important;
    line-height: 1.2 !important;
}

.woocommerce-checkout #payment div.payment_box p{
    margin: 0 !important;
}

.woocommerce-checkout #payment .form-row.place-order{
    padding:14px 16px 16px !important;
    margin:0 !important;

    padding: 10px 16px 12px !important;
}
/* Rimuove QUALSIASI triangolo nei metodi pagamento */
.woocommerce-checkout #payment .payment_box::before,
.woocommerce-checkout #payment .payment_box::after,
.woocommerce-checkout #payment .wc_payment_method .payment_box::before,
.woocommerce-checkout #payment .wc_payment_method .payment_box::after{
    display: none !important;
    content: none !important;
    border: none !important;
}

/*riordina carrello vuoto*/

.woocommerce .return-to-shop .button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 20px;
  border:none;
  border-radius:12px;
  background:linear-gradient(90deg, #2db4ea 0%, #1fa3df 100%) !important;
  color:#fff !important;
  font-weight:700;
  text-decoration:none;
  box-shadow:none !important;
}

.woocommerce .return-to-shop .button:hover{
  opacity:.96;
}


/*prezzo su richiesta*/
.dcv-b2b-quote-notice{
  margin-top:10px;
  font-size:13px;
  color:#555;
}

.dcv-b2b-quote-price{
  font-size: 12px;
  font-weight: 500;
  color: #777;
}

.dcv-b2b .b2b-price-request {
  font-size: 12px;
  font-weight: 500;
  color: #777;
}

.dcv-b2b-quote-note{
  font-size: 12px;
  font-weight: 500;
  color: #777; 
}


/* ===== RIORDINA - FIX ALLINEAMENTO ===== */

.dcv-riordina-row {
  display: grid;
  grid-template-columns: 90px 1.6fr 140px 120px 140px;
  align-items: center;
  gap: 12px;
}

/* ===== RIORDINA - layout corretto a 5 colonne ===== */

.dcv-riordina-head,
.dcv-riordina-row {
  display: grid !important;
  grid-template-columns: 90px minmax(220px, 1.6fr) 140px 120px 140px !important;
  align-items: center;
  column-gap: 16px;
}

.dcv-riordina-head > div,
.dcv-riordina-row > div {
  min-width: 0;
}

/* Posizionamento esplicito colonne header */
.dcv-riordina-head .col-foto     { grid-column: 1; }
.dcv-riordina-head .col-prodotto { grid-column: 2; }
.dcv-riordina-head .col-prezzo   { grid-column: 3; }
.dcv-riordina-head .col-qta      { grid-column: 4; }
.dcv-riordina-head .col-azione   { grid-column: 5; }

/* Posizionamento esplicito colonne righe */
.dcv-riordina-row .col-foto     { grid-column: 1; }
.dcv-riordina-row .col-prodotto { grid-column: 2; }
.dcv-riordina-row .col-prezzo   { grid-column: 3; }
.dcv-riordina-row .col-qta      { grid-column: 4; }
.dcv-riordina-row .col-azione   { grid-column: 5; }

/* Allineamenti */
.dcv-riordina-row .col-foto,
.dcv-riordina-row .col-prodotto,
.dcv-riordina-row .col-prezzo,
.dcv-riordina-row .col-qta,
.dcv-riordina-row .col-azione {
  align-self: center;
}

.dcv-riordina-row .col-prezzo,
.dcv-riordina-head .col-prezzo {
  text-align: left;
}

.dcv-riordina-row .col-qta,
.dcv-riordina-head .col-qta {
  text-align: center;
}

.dcv-riordina-row .col-azione,
.dcv-riordina-head .col-azione {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.dcv-riordina-row .dcv-riordina-add {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Evita che il nome prodotto allarghi e rompa la griglia */
.dcv-riordina-row .col-prodotto strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}
/* VALIDITA' PROMOZIONE IN PAGE PROMOZIONI*/


.b2b-promo-expiry-badge{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(185, 28, 28, 0.08);
  color: #b91c1c;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
/* VALIDITA' PROMOZIONE IN DASHBOARD*/

.dcv-b2b-home-promo-img{
  width:80px;
  min-width:80px;
  height:80px;
  display:flex;
  align-items:center;
  justify-content:center;

  position: relative;
}

.dcv-b2b-home-promo-expiry-badge{
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 5;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(185, 28, 28, 0.12);
  color: #b91c1c;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

/* SCONTO IN VIEW-ORDER */

.dcv-b2b-price-old{
  display: inline-block;
  margin-right: 6px;
  font-size: 12px;
  color: #64748b;
  text-decoration: line-through;
  white-space: nowrap;
}

.dcv-b2b-price-new{
  display: inline-block;
  color: #e53935 !important;
  font-weight: 700;
  white-space: nowrap;
}

.dcv-col-subtotale .dcv-b2b-price-new {
  font-weight: 700;
}

/* TASTO AGGIUNGI A CARRELLO ORDINI RECENTI CENTRATO*/

  .dcv-order-btn {
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
}


/* =========================
   PROMO SKU
========================= */


.b2b-promo-card--sku .b2b-promo-product{
  width:110px;
  height:110px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.b2b-promo-card--sku .b2b-promo-product img{
  width:100px;
  height:100px;
  object-fit:contain;
  border-radius:12px;
  background:#fff;
  padding:8px;
  transition:transform 0.2s ease, box-shadow 0.2s ease;
}

.b2b-promo-card--sku .b2b-promo-product img:hover{
  transform:scale(1.08);
  box-shadow:0 4px 12px rgba(0,0,0,0.1);
}

.b2b-promo-card--sku .b2b-promo-discount{
  margin-top:8px;
  display:inline-block;
  padding:3px 10px;
  font-size:12px;
  font-weight:600;
  background:#e53935;
  color:#fff;
  border-radius:16px;
  box-shadow:none;
  text-align:center;
}
.b2b-promo-card--sku .b2b-promo-toggle{
  margin-top:14px;
  padding:10px 14px;
  border:0;
  border-radius:10px;
  background:#2ea3f2;
  color:#fff;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
}

.b2b-promo-card--sku .b2b-promo-list{
  margin-top:12px;
  text-align:left;
  background:#fff;
  border-radius:10px;
  padding:12px 14px;
}

.b2b-promo-card--sku .b2b-promo-list ul{
  margin:0;
  padding-left:18px;
}

.b2b-promo-card--sku .b2b-promo-list li{
  margin:6px 0;
  font-size:14px;
}


/* =========================
   PRODOTTI IN PROMOZIONE SKU
========================= */

.b2b-promo-products-catalog{
  padding-top:24px;
  padding-bottom:40px;
}

.b2b-promo-products-catalog .b2b-promo-products-header{
  background:transparent;
  border:none;
  padding:0;
  margin-bottom:16px;
}

.b2b-promo-products-catalog .b2b-promo-products-header h1{
  margin:0;
  font-size:28px;
  line-height:1.1;
  color:#0f172a;
  font-weight:700;
}

.b2b-promo-products-catalog .b2b-promo-products-empty{
  background:#fff;
  border:1px solid #d9e3ec;
  padding:18px 20px;
  color:#334155;
}

.b2b-promo-products-catalog .b2b-promo-products-table-head{
  display:grid;
  grid-template-columns:95px minmax(320px, 1.8fr) 180px 110px 95px 150px;
  align-items:center;
  background:#dbeaf5;
  color:#4a5c73;
  font-weight:700;
  padding:0 12px;
  min-height:46px;
  border:1px solid #cfdbe6;
  border-bottom:none;
  margin-bottom:0;
  border-radius:18px 18px 0 0;
}

.b2b-promo-products-catalog .b2b-promo-th{
  font-size:14px;
  font-weight:700;
  color:#4a5c73;
  padding:0 10px;
}

.b2b-promo-products-catalog .b2b-promo-products-grid{
  display:flex;
  flex-direction:column;
  gap:0;
  border-left:1px solid #cfdbe6;
  border-right:1px solid #cfdbe6;
  border-bottom:1px solid #cfdbe6;
  background:#fff;
}

.b2b-promo-products-catalog .b2b-promo-product-row{
  display:grid;
  grid-template-columns:95px minmax(320px, 1.8fr) 180px 110px 95px 150px;
  align-items:center;
  padding:0 12px;
  min-height:84px;
  border-top:1px solid #d7e2ec;
  background:#fff;
}

.b2b-promo-products-catalog .b2b-promo-product-row:first-child{
  border-top:none;
}

.b2b-promo-products-catalog .b2b-promo-col{
  padding:12px 10px;
  min-width:0;
}

.b2b-promo-products-catalog .b2b-promo-col--image{
  display:flex;
  align-items:center;
  justify-content:center;
}

.b2b-promo-products-catalog .b2b-promo-col--image img{
  width:58px;
  height:58px;
  object-fit:contain;
  display:block;
  border-radius:6px;
}

.b2b-promo-products-catalog .b2b-promo-col--product{
  min-width:0;
}

.b2b-promo-products-catalog .b2b-promo-product-row__title{
  margin:0;
  font-size:16px;
  line-height:1.2;
  font-weight:600;
  color:#111827;
}

.b2b-promo-products-catalog .b2b-promo-col--price{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:4px;
}

.b2b-promo-products-catalog .b2b-promo-product-row__badge{
  display:inline-block;
  background:#e53935;
  color:#fff;
  border-radius:999px;
  padding:4px 8px;
  font-size:11px;
  font-weight:700;
  line-height:1;
}

.b2b-promo-products-catalog .b2b-promo-product-row__price{
  display:flex;
  align-items:flex-end;
  gap:8px;
  flex-wrap:wrap;
}

.b2b-promo-products-catalog .b2b-promo-product-row__price .old{
  color:#7b7b7b;
  text-decoration:line-through;
  font-size:14px;
  line-height:1;
}

.b2b-promo-products-catalog .b2b-promo-product-row__price .new{
  color:#ef3d32;
  font-weight:800;
  font-size:18px;
  line-height:1;
}

.b2b-promo-products-catalog .b2b-price-request{
  color:#5f6f7c;
  font-size:15px;
  font-weight:700;
}

.b2b-promo-products-catalog .b2b-promo-col--unit{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:2px;
}

.b2b-promo-products-catalog .b2b-promo-product-row__unit{
  color:#111827;
  font-size:15px;
  font-weight:700;
  line-height:1.1;
}

.b2b-promo-products-catalog .b2b-promo-product-row__pack{
  color:#6b7280;
  font-size:12px;
  line-height:1.2;
}

.b2b-promo-products-catalog .b2b-promo-col--qty{
  display:flex;
  align-items:center;
  justify-content:flex-start;
}

.b2b-promo-products-catalog .b2b-promo-col--qty input[type="number"],
.b2b-promo-products-catalog .b2b-promo-col--qty input.qty,
.b2b-promo-products-catalog .b2b-promo-col--qty .qty{
  width:72px;
  min-width:72px;
  height:40px;
  border:1px solid #d5d5d5;
  border-radius:14px;
  padding:6px 10px;
  font-size:16px;
  box-sizing:border-box;
  text-align:center;
  background:#fff;
}

.b2b-promo-products-catalog .b2b-promo-col--action{
  display:flex;
  align-items:center;
  justify-content:flex-start;
}

.b2b-promo-products-catalog .b2b-promo-col--action .btn.b2b-add-to-cart{
  min-width:108px;
  height:40px;
  padding:0 18px;
  border:0;
  border-radius:999px;
  background:#27b3f6;
  color:#fff;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
  white-space:nowrap;
}

.b2b-promo-products-catalog .b2b-promo-product-row__pack--mobile{
  display:none;
}

@media (max-width: 1100px){
  .b2b-promo-products-catalog .b2b-promo-products-table-head{
    display:none;
  }

  .b2b-promo-products-catalog .b2b-promo-products-grid{
    border-top:1px solid #cfdbe6;
  }

  .b2b-promo-products-catalog .b2b-promo-product-row{
    grid-template-columns:80px 1fr 1fr;
    gap:12px;
    padding-top:10px;
    padding-bottom:10px;
  }

  .b2b-promo-products-catalog .b2b-promo-col--image{
    grid-row:1 / span 4;
  }

  .b2b-promo-products-catalog .b2b-promo-col--product{
    grid-column:2 / 4;
  }

  .b2b-promo-products-catalog .b2b-promo-col--price{
    grid-column:2;
  }

  .b2b-promo-products-catalog .b2b-promo-col--unit{
    grid-column:3;
  }

  .b2b-promo-products-catalog .b2b-promo-col--qty{
    grid-column:2;
  }

  .b2b-promo-products-catalog .b2b-promo-col--action{
    grid-column:3;
  }
}

.dcv-b2b.container.b2b-promo-products-catalog{
  padding-top: 52px;
}

.b2b-promo-products-header h1{
  margin-top:0;
}

@media (max-width: 640px){
  .b2b-promo-products-catalog .b2b-promo-products-header{
    padding:16px;
  }

  .b2b-promo-products-catalog .b2b-promo-products-header h1{
    font-size:24px;
  }

  .b2b-promo-products-catalog .b2b-promo-product-row{
    grid-template-columns:1fr;
    gap:10px;
  }

  .b2b-promo-products-catalog .b2b-promo-col--image,
  .b2b-promo-products-catalog .b2b-promo-col--product,
  .b2b-promo-products-catalog .b2b-promo-col--price,
  .b2b-promo-products-catalog .b2b-promo-col--unit,
  .b2b-promo-products-catalog .b2b-promo-col--qty,
  .b2b-promo-products-catalog .b2b-promo-col--action{
    grid-column:auto;
    grid-row:auto;
  }

  .b2b-promo-products-catalog .b2b-promo-col--image{
    justify-content:flex-start;
  }

  .b2b-promo-products-catalog .b2b-promo-product-row__pack--desktop{
    display:none;
  }

  .b2b-promo-products-catalog .b2b-promo-product-row__pack--mobile{
    display:block;
    margin-top:6px;
  }
}

/* =========================
   ROSSO PROMO SCONTO NEL CARRELLO
========================= */

.b2b-promo-badge {
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 2px;
  line-height: 1;
  font-weight: 600;
}

/* =========================
   La mia lista e' vuota
========================= */

.dcv-mylist-empty{
  max-width: 720px;
  margin: 60px auto;
  background: #f7fbff;
  border-radius: 18px;
  padding: 40px 28px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.dcv-mylist-empty h2{
  margin-bottom: 12px;
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
}

.dcv-mylist-empty p{
  margin-bottom: 22px;
  font-size: 16px;
  color: #475569;
}

.dcv-mylist-btn{
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  background: linear-gradient(135deg,#38bdf8,#0284c7);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.dcv-mylist-btn:hover{
  opacity: 0.9;
}


/* =========================
   PROMOZIONI DASHBOARD
========================= */
.dcv-b2b-home-promos-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}

.dcv-b2b-home-promo-card{
  display:block;
  position:relative;
  background:#ffffff;
  border:1px solid #eef2f5;
  border-radius:12px;
  padding:10px;
  text-decoration:none;
  transition:all .2s ease;
  box-shadow:0 2px 8px rgba(0,0,0,.04);
}

.dcv-b2b-home-promo-card:hover{
  position:relative;
  transform:translateY(-2px);
  box-shadow:0 6px 18px rgba(0,0,0,.08);
}

.dcv-b2b-home-promo-thumb{
  width:100%;
  height:60px;
  margin-bottom:6px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.dcv-b2b-home-promo-thumb img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  display:block;
  transform:scale(1.05);
}

.dcv-b2b-home-promo-content{
  flex:1;
  min-width:0;

  display:flex;
  flex-direction:column;
  align-items:flex-start;
}


/* ========================================
FIX PROMO DASHBOARD (badge -10% su una riga) 
=========================================== */

.dcv-b2b-home-promo-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dcv-b2b-home-promo-name {
  font-size:16px;
  line-height:1.25;
  font-weight:700;
  color:#0f172a;
  margin-bottom:4px;

  font-size:13px;
  
  font-weight:600;
  
  margin-bottom:2px;

  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dcv-b2b-home-promo-badge {
  display:inline-block;
  background:#e53935;
  color:#fff;
  font-size:11px;
  font-weight:700;
  line-height:1;
  padding:4px 8px;
  border-radius:999px;
  margin-bottom:4px;

  align-self:flex-end;

  position:absolute !important;
  top:8px !important;
  right:8px !important;
  left: auto !important;
  
  font-size:10px;
  
  padding:3px 7px;
  
  background:#ef4444;
  
  
  box-shadow:0 2px 6px rgba(0,0,0,.15);

  flex-shrink: 0;
  white-space: nowrap;
}

/* ========================================
RISTYLE CATALOGO
=========================================== */


/* ===== B2B Catalogo – miglioramento immediato percezione ===== */

/* ===== B2B catalogo – step 2: spinta forte ma veloce ===== */

/* riga più “commerciale” */


/* header tabella più leggibile */
.products-table th{
  padding:11px 12px;
  font-size:12px !important;
  font-weight:700 !important;
  line-height:1.2;
  letter-spacing:.035em;
  color:#516174 !important;
  text-transform:uppercase;
  border-bottom:1px solid #cddde8;
}

/* prodotto: più protagonista */


/* prezzo: deve saltare fuori */
.products-table td.b2b-col-price{
  min-width: 130px;
  text-align: center;
}

.products-table .b2b-price-main,
.products-table .b2b-price-main .amount{
  display: inline-block;
  font-size: 17px !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
  color:#172333 !important;
  white-space: nowrap;
}

.products-table .b2b-price-wrap{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.products-table .b2b-promo-badge{
  font-size: 11px !important;
  font-weight: 800 !important;
  border-radius: 999px;
  padding: 3px 8px;
}

.products-table .b2b-price-old{
  font-size: 13px !important;
  line-height: 1 !important;
  opacity: .55;
  text-decoration: line-through;
}

.products-table .b2b-price-new,
.products-table .b2b-price-new .amount{
  font-size: 23px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  color: #cf2e2e !important;
  white-space: nowrap;
}

/* “su richiesta” più dignitoso */
.products-table .b2b-price-request{
  display: inline-block;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #6b7280 !important;
  white-space: nowrap;
}

/* unità più ordinata */
.products-table td.b2b-col-unit{
  min-width: 90px;
}

.products-table .b2b-unit{
  font-size: 15px !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
  color:#172333 !important;
}

.products-table .b2b-cartoni{
  font-size: 12px !important;
  line-height: 1.15 !important;
  color: #6b7280 !important;
  margin-top: 4px;
}

/* quantità più compatta e pulita */
.products-table td.b2b-col-qty{
  min-width: 92px;
}

.products-table td.b2b-col-qty input.b2b-qty{
  width: 68px !important;
  min-width: 68px !important;
  height: 38px !important;
  border-radius: 10px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-align: center !important;
  background: #fff !important;
}

/* bottone: deve chiudere la riga */
.products-table td.b2b-col-action{
  min-width: 120px;
  text-align: center;
}

.products-table td.b2b-col-action .b2b-add-to-cart{
  min-width: 104px !important;
  height: 38px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  box-shadow:none;
  transition:transform .15s ease, opacity .15s ease;
}

.products-table td.b2b-col-action .b2b-add-to-cart:hover{
  transform: translateY(-1px);
  box-shadow:none;
}

/* stella lista un filo più ordinata */
.products-table td.b2b-col-list,
.products-table td:last-child{
  min-width: 62px;
  text-align: center;
}

.products-table .dcv-add-my-list{
  font-size: 18px;
  line-height: 1;
}

/* foto leggermente più curate */
.products-table .b2b-thumb{
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255,255,255,0.6);
}

/* compatta un po’ la tabella su schermi medi */
@media (max-width: 1280px){
  .products-table .b2b-product-name{
    font-size: 17px !important;
  }

  .products-table .b2b-price-main,
  .products-table .b2b-price-main .amount,
  .products-table .b2b-price-new,
  .products-table .b2b-price-new .amount{
    font-size: 20px !important;
  }
}
/* ===== STEP 2.5 – effetto card senza cambiare HTML ===== */

.products-table {
  border-collapse: separate;
  border-spacing: 0 5px;
}


.products-table tbody tr td {
  padding-top:8px;
  padding-bottom:8px;
  vertical-align:middle;
  background: #ffffff;
}

/* effetto “blocco unico” */
.products-table tbody tr td:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.products-table tbody tr td:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

/* ombra leggera */
.products-table tbody tr {
  transition: background-color .18s ease, box-shadow .18s ease;

  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;

  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

/* hover più evidente */
.products-table tbody tr:hover {
  background: rgba(255,255,255,0.28);
  box-shadow: inset 0 0 0 9999px rgba(255,255,255,0.06);

  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

/* bottone ancora più protagonista */


/* prezzo ancora più centrato visivamente */
.b2b-col-price {
  text-align: center;
}
/* evidenzia azione */
.b2b-col-action {
  text-align: center;
}

/* bottone più forte */
.b2b-add-to-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: #24aee9;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: opacity .2s ease;

  background: linear-gradient(135deg, #2ea3f2, #1b8ed9);

  
  padding: 10px 18px;
}

/* quando passi sopra tutta la riga */
.products-table tbody tr:hover .b2b-add-to-cart {
  transform: scale(1.05);
}

/* prezzo più importante */
.b2b-price-main {
  font-size: 18px;
  font-weight: 800;
}
/* selezione testo coerente con il prezzo */
::selection {
  background: rgba(0,0,0,0.08);
  color: #111;
}

::-moz-selection {
  background: rgba(0,0,0,0.08);
  color: #111;
}
.b2b-product-name {
  font-weight: 700;
  color: #0f172a; /* leggermente più profondo */
}

.products-table tbody tr:hover .b2b-product-name {
  color: #000;
}


/* ===== Catalogo: nome prodotto più evidente, ma non troppo ===== */

.products-table .b2b-col-product,
.products-table td:nth-child(2) {
  width:250px;
}

.products-table .b2b-product-name,
.products-table .b2b-name,
.products-table .b2b-name a{
  font-size:16px;
  font-weight:700;
  line-height:1.2;
  letter-spacing:-0.01em;
  color:#172333;
  text-decoration:none;
}

.products-table .b2b-col-desc{
  width:330px;
}

.products-table .b2b-product-desc,
.products-table tbody td:nth-child(3){
  font-size:14px;
  line-height:1.4;
  color:#5f6f84;
}


/* ===== Quantità: più discreta ===== */

.b2b-qty,
.products-table input[type="number"] {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #1e293b !important;
}

/* opzionale: rendi anche il box meno “importante” */


.b2b-qty {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;

  font-size: 14px !important;
  font-weight: 500 !important;
  width: 52px !important;
  height: 34px !important;
  border-radius: 8px !important;
}


/* =========================================================
   TITOLO CATEGORIA / BREADCRUMB
   ========================================================= */

.b2b-title-with-breadcrumb{
  margin:0 0 16px;
}

.b2b-title-row{
  display:flex;
  align-items:baseline;
  gap:8px;
  margin:0 0 16px;
}

.b2b-breadcrumb-inline{
  display:flex;
  align-items:baseline;
  gap:7px;
}

.b2b-breadcrumb-inline a{
  font-size:15px;
  font-weight:500;
  color:#687580;
  text-decoration:none;
}

.b2b-breadcrumb-inline a:hover{
  color:#159fd6;
}

.b2b-breadcrumb-sep{
  font-size:15px;
  font-weight:400;
  color:#9aa6b0;
}

.b2b-breadcrumb-inline span:last-child{
  font-size:23px;
  line-height:1.2;
  font-weight:700;
  color:#172333;
}

.b2b-page-title{
  margin:0;
  font-size:28px;
  line-height:1.15;
  font-weight:700;
  color:#172333;
}

/* =========================
   PREZZI CATALOGO = CARRELLO
   ========================= */

.products-table .b2b-price-cell{
  vertical-align: middle;
  text-align: center;
}

.products-table .b2b-price-cell .b2b-price-wrap{
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  line-height: 1;
}

.products-table .b2b-price-cell .b2b-promo-badge{
  display: inline-block;
  background: #c94a3b;
  color: #fff;
  font-size: 10px !important;
  font-weight: 700;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 999px;
  white-space: nowrap;
  margin-bottom: 1px;
}

.products-table .b2b-price-cell .b2b-price-old{
  color: #9aa0a6;
  font-size: 12px !important;
  line-height: 1;
  text-decoration: line-through;
  margin: 0;
  opacity: .95;
}

.products-table .b2b-price-cell .b2b-price-old .amount{
  color: #9aa0a6 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

.products-table .b2b-price-cell .b2b-price-new{
  color: #cf4a3a;
  font-size: 16px !important;
  font-weight: 800;
  line-height: 1;
  margin: 0;
}

.products-table .b2b-price-cell .b2b-price-new .amount{
  color: #cf4a3a !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}

.products-table .b2b-price-cell > .amount,
.products-table .b2b-price-cell .b2b-price-request{
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #1f2f43 !important;
}

/* =========================
   LA MIA LISTA - PREZZO PROMO VISIBILE
   ========================= */

.dcv-mylist-table .b2b-price-cell{
  vertical-align: middle;
}

.dcv-mylist-table .dcv-mylist-price-wrap{
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.dcv-mylist-table .b2b-price-wrap{
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.dcv-mylist-table .b2b-promo-badge{
  display: inline-block;
  background: #c94a3b !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  padding: 4px 8px !important;
  border-radius: 999px !important;
  white-space: nowrap;
}

.dcv-mylist-table .b2b-price-old{
  color: #999 !important;
  font-size: 14px !important;
  line-height: 1.1 !important;
  text-decoration: line-through !important;
}

.dcv-mylist-table .b2b-price-old .amount,
.dcv-mylist-table .b2b-price-old .woocommerce-Price-amount{
  color: #999 !important;
}

.dcv-mylist-table .b2b-price-new{
  color: #d14c3f !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
}

.dcv-mylist-table .b2b-price-new .amount,
.dcv-mylist-table .b2b-price-new .woocommerce-Price-amount{
  color: #d14c3f !important;
  font-weight: 800 !important;
}

.dcv-mylist-table .b2b-price-cell > .woocommerce-Price-amount,
.dcv-mylist-table .b2b-price-cell > .amount{
  font-size: 16px;
  font-weight: 700;
  color: #1f2f43;
}

.dcv-mylist-table .b2b-price-request{
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #6b7280 !important;
}

/* ===============================
   PROMO CARD GLOBALE
================================= */

.b2b-promo-card--global{
  text-align: center;
  background: #f7fbff;
  border: 2px solid #d9ecfb;
}

.b2b-promo-card--global .b2b-promo-expiry-badge{
  background: #eef7ff;
  color: #d6422b;
}

.b2b-promo-global-image-wrap{
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px 0 10px;
}

.b2b-promo-global-image{
  display: block;
  width: 100%;
  max-width: 260px; /* 👈 aumenta qui */
  height: auto;
  object-fit: contain;
}


/* ===============================
   GRID PROMO
================================= */

.b2b-promotions-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 40px;

  
  grid-template-columns:repeat(3, 260px);
  
  justify-content:start;

  
  
  gap: 28px;
  align-items: stretch;
}

/* ===============================
   CARD BASE
================================= */


/* titolo uniforme */


/* parte finale allineata in basso */
.b2b-promo-actions,
.b2b-promo-bottom{
  margin-top: auto;
}

/* promo codice: area immagini uniforme */
.b2b-promo-card--sku .b2b-promo-products{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
  margin:18px auto 0;
  justify-items:center;
  align-items:center;
  width:100%;
  max-width:240px;

  min-height: 170px;
  
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 22px;
  align-content: center;
  
}

/* responsive */
@media (max-width: 980px){
  .b2b-promotions-grid{
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .b2b-promo-card{
    width: 100%;
    max-width: 320px;
  }
}

.b2b-promo-card{
  background: #fff;
  border-radius: 20px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 1px 0 rgba(15,23,42,.04);

  position: relative;

  height: 100%;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;

  
  
  
}

.b2b-promo-card--global .b2b-promo-bottom{
  margin-top: 25px;

  margin-top: auto;
}

.b2b-promo-card h3{
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  min-height: 60px;
  
  
  
  
}

.b2b-promo-pack-inline{
  display: inline-block;
  width: auto;
  margin: 4px auto 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #5f6b7a;
  background: #eef3f8;
  border-radius: 999px;
}
/* BOTTONI PROMO (tutti uguali) */
.b2b-promo-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 18px;
  border-radius: 25px;

  background: linear-gradient(135deg, #4bb3ff, #1e8fe6);
  color: #fff !important;

  font-weight: 600;
  font-size: 14px;
  text-decoration: none;

  border: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);

  transition: all 0.2s ease;
}

/* hover */
.b2b-promo-link:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

b2b-promo-card--global .b2b-promo-link,
.b2b-promo-card--sku .b2b-promo-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 20px;
  background: #2eaeea;
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  border: none;
  box-shadow: none;
}
/* Ragione sociale bloccata */
#billing_company {
    background: #e9ecef !important;
    color: #555 !important;
    cursor: not-allowed;
    border-color: #ddd !important;
}
.woocommerce-terms-and-conditions-wrapper a {
    color: #0073aa;
    font-weight: 700;
    text-decoration: underline;
    background: rgba(0,115,170,0.08);
    padding: 2px 4px;
    border-radius: 3px;
}

body.page-id-63 .wppb-description-delimiter {
  display: none !important;
}

/* ===== PAGINA REGISTRAZIONE B2B ===== */

/* ===== INTRO REGISTRAZIONE B2B ===== */

body.page-id-63 .b2b-register-intro {
  max-width: 720px;
  margin: 0 auto 28px;
  padding: 26px 28px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  text-align: center;
}

/* kicker sopra titolo */
body.page-id-63 .b2b-register-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: #0ea5e9;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* titolo */
body.page-id-63 .b2b-register-intro h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.5vw, 34px);
  line-height: 1.2;
  color: #0f172a;
}

/* descrizione */
body.page-id-63 .b2b-register-intro p {
  margin: 0;
  color: #475569;
  line-height: 1.55;
  font-size: 0.98rem;
}

/* box approvazione */


/* spazio tra intro e form */

body.page-id-63 .b2b-register-benefits {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

body.page-id-63 .b2b-register-benefits li {
  font-size: 0.95rem;
  color: #0f172a;
  font-weight: 600;
}
body.page-id-63 .b2b-register-note {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 600;
  font-size: 0.9rem;

  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-weight: 500;
  font-size: 0.85rem;
}

/* registrazione nuovo form*/

body.page-id-63 #wppb-register-user {
  margin-top: 32px;

  max-width: 760px;
  margin: 32px auto 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

body.page-id-63 #wppb-register-user ul {
  padding: 0;
  margin: 0;
}

body.page-id-63 .b2b-register-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 26px 30px;
  margin-bottom: 22px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

body.page-id-63 .b2b-register-card h3 {
  margin: 0 0 18px;
  font-size: 1.25rem;
  color: #0f172a;
}

body.page-id-63 .b2b-register-card-note {
  margin: -8px 0 18px;
  color: #64748b;
  font-size: 0.92rem;
}

body.page-id-63 .b2b-register-card li {
  list-style: none;
  margin-bottom: 18px;
}

body.page-id-63 .b2b-register-card li:last-child {
  margin-bottom: 0;
}


/* COMPATIBILE COM */

.b2b-compatible-callout{
  margin-top: 8px;
  padding-top: 8px;

  display:block;

  border-top: 1px solid #8dc9ef;

  color:#168fc9;

  font-size:13px;
  font-weight:700;
  line-height:1.35;
}

.b2b-compatible-callout::before{
  content:"↔ ";
  font-weight:900;
}

.b2b-compatible-callout a{
  color: inherit;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}

.b2b-compatible-callout a:hover{
  opacity: .75;
}

.products-table tr.b2b-product-focus td{
  background:#eef8ff !important;
  border-top:2px solid #38aee8;
  border-bottom:2px solid #38aee8;
}

.products-table tr.b2b-product-focus td:first-child{
  border-left:2px solid #38aee8;
  border-radius:14px 0 0 14px;
}

.products-table tr.b2b-product-focus td:last-child{
  border-right:1px solid #38aee8;
  border-radius:0 14px 14px 0;
  box-shadow:0 0 18px rgba(56,174,232,.18);
}

.b2b-compatible-refills{
  margin-top:8px;
  padding-top:8px;
  border-top:1px solid #8dc9ef;
  color:#168fc9;
  font-size:13px;
  font-weight:700;
  line-height:1.35;
}

.b2b-compatible-refills a{
  display:inline-block;
  margin-top:5px;
  margin-right:8px;
  color:inherit;
  font-weight:800;
  text-decoration:none;
  border-bottom:1px dotted currentColor;
}

.b2b-compatible-refills a:hover{
  opacity:.75;
}

/* PRODOTTI COMPATIBILI CON */

.b2b-dosatore-name{
  color:#1f2b3d !important;
  font-weight:700 !important;
  display:inline-block;
  margin-top:4px;
}

.b2b-page-title br{
  display:block;
}

.b2b-breadcrumb{
  margin-top:14px;
}

.b2b-title-compat{
    font-size:28px;
    line-height:1.08;
    letter-spacing:-0.5px;
    margin:6px 0 24px;
    max-width:900px;
}
.b2b-compat-header{
  display:flex;
  align-items:center;
  gap:18px;
  margin-bottom:20px;
}

.b2b-compat-thumb{
  width:72px;
  height:72px;
  object-fit:contain;
  border-radius:12px;
  background:#fff;
  padding:8px;
  flex-shrink:0;
}

.b2b-thumb-btn{
  border:0;
  background:none;
  padding:0;
  cursor:zoom-in;
}
/* =========================================
   B2B - hover righe prodotti senza barra blu
   ========================================= */

/* Tabelle catalogo / compatibili / la mia lista */
body .products-table tbody tr{
  transition: background-color .18s ease;
}

body .products-table tbody tr:hover{
  background:#f5fbff !important;
  box-shadow:none !important;
}

/* Disattiva eventuale barra laterale */
body .products-table tbody tr::before,
body .dcv-mylist-row::before,
body .dcv-top-acquisti-row::before{
  display:none !important;
  content:none !important;
}

/* Nome prodotto */
body .products-table tbody tr:hover .b2b-product-name,
body .products-table tbody tr:hover .b2b-name{
  color:#2daae1 !important;
}

/* Foto */
body .products-table tbody td:first-child img{
  transition: transform .18s ease;
}

body .products-table tbody tr:hover td:first-child img{
  transform: scale(1.06);
}

/* Bottoni */
body .products-table tbody td .btn,
body .products-table tbody td .b2b-btn,
body .products-table tbody td button{
  transition: transform .18s ease, box-shadow .18s ease;
}

body .products-table tbody tr:hover td .btn,
body .products-table tbody tr:hover td .b2b-btn,
body .products-table tbody tr:hover td button{
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

/* Stella */
body .products-table tbody td .dcv-add-my-list{
  transition: transform .18s ease, color .18s ease;
}

body .products-table tbody tr:hover td .dcv-add-my-list{
  transform: scale(1.12);
}

body .products-table tbody tr:hover td .dcv-add-my-list:not(.is-saved){
  color:#2daae1;
}


/* =========================================
   B2B - Hover unificato catalogo/lista/top
   ========================================= */

/* stato base: stesso colore del catalogo */
body .products-table tbody tr,
body .dcv-mylist-row,
body .dcv-top-acquisti-row{
  background:#edf5fa !important;
  transition: all .18s ease;
}

/* hover */
body .products-table tbody tr:hover,
body .dcv-mylist-row:hover,
body .dcv-top-acquisti-row:hover{
  background:#f5fbff !important;
}

/* nome prodotto */
body .products-table tbody tr .b2b-name,
body .dcv-mylist-row .b2b-name,
body .dcv-top-acquisti-row .col-prodotto strong{
  transition: color .18s ease;
}

body .products-table tbody tr:hover .b2b-name,
body .dcv-mylist-row:hover .b2b-name,
body .dcv-top-acquisti-row:hover .col-prodotto strong{
  color:#2daae1 !important;
}

/* immagini */
body .products-table tbody img,
body .dcv-mylist-row img,
body .dcv-top-acquisti-row img{
  transition: transform .18s ease;
}

body .products-table tbody tr:hover img,
body .dcv-mylist-row:hover img,
body .dcv-top-acquisti-row:hover img{
  transform:scale(1.04);
}

/* bottoni */
body .products-table tbody button,
body .dcv-mylist-row button,
body .dcv-top-acquisti-row button{
  transition: transform .18s ease;
}

body .products-table tbody tr:hover button,
body .dcv-mylist-row:hover button,
body .dcv-top-acquisti-row:hover button{
  transform:scale(1.03);
}
/* TOP ACQUISTI - stesso fondo catalogo */

body .dcv-top-acquisti-row,
body .dcv-top-acquisti-row > div{
  background:#edf5fa !important;
}

body .dcv-top-acquisti-row:hover,
body .dcv-top-acquisti-row:hover > div{
  background:#f5fbff !important;
}

/* =========================================
   RIORDINA - stesso look catalogo
   ========================================= */

body .dcv-riordina-row,
body .dcv-riordina-row > div{
  background:#edf5fa !important;
  transition: all .18s ease;
}

/* hover */
body .dcv-riordina-row:hover,
body .dcv-riordina-row:hover > div{
  background:#f5fbff !important;
}

/* nome prodotto */
body .dcv-riordina-row .col-prodotto strong{
  transition: color .18s ease;
}

body .dcv-riordina-row:hover .col-prodotto strong{
  color:#2daae1 !important;
}

/* foto */
body .dcv-riordina-row img{
  transition: transform .18s ease;
}

body .dcv-riordina-row:hover img{
  transform:scale(1.04);
}

/* bottone */
body .dcv-riordina-add{
  transition: transform .18s ease;
}

body .dcv-riordina-row:hover .dcv-riordina-add{
  transform:scale(1.03);
}

/* =========================================
   ORDINI RECENTI - hover coerente B2B
   ========================================= */

body .dcv-orders-row,
body .dcv-orders-row > div{
  background:#edf5fa !important;
  transition: all .18s ease;
}

body .dcv-orders-row:hover,
body .dcv-orders-row:hover > div{
  background:#f5fbff !important;
}

/* numero ordine */
body .dcv-orders-row .col-id{
  transition: color .18s ease;
}

body .dcv-orders-row:hover .col-id{
  color:#2daae1 !important;
}

/* bottone aggiungi ordine */
body .dcv-orders-row .dcv-order-btn{
  transition: transform .18s ease, box-shadow .18s ease;
}

body .dcv-orders-row:hover .dcv-order-btn{
  transform:scale(1.03);
  box-shadow:0 4px 12px rgba(0,0,0,.08);
}

/* =========================================
   PRODOTTI PROMO - hover coerente catalogo
   ========================================= */

body .b2b-promo-product-row,
body .b2b-promo-product-row > div{
  background:#edf5fa !important;
  transition: all .18s ease;
}

body .b2b-promo-product-row:hover,
body .b2b-promo-product-row:hover > div{
  background:#f5fbff !important;
}

/* nome prodotto */
body .b2b-promo-product-row h3{
  transition: color .18s ease;
}

body .b2b-promo-product-row:hover h3{
  color:#2daae1 !important;
}

/* foto */
body .b2b-promo-product-row img{
  transition: transform .18s ease;
}

body .b2b-promo-product-row:hover img{
  transform:scale(1.04);
}

/* bottone */
body .b2b-promo-product-row .btn{
  transition: transform .18s ease, box-shadow .18s ease;
}

body .b2b-promo-product-row:hover .btn{
  transform:scale(1.03);
  box-shadow:0 4px 12px rgba(0,0,0,.08);
}


/* =========================================
   MENU HEADER B2B
   ========================================= */

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
}

/* =========================================
   MENU
   ========================================= */

.nav nav ul{
  display:flex;
  align-items:center;
  gap:12px;

  margin:0;
  padding:0;

  list-style:none;
}

/* =========================================
   LINK BASE
   ========================================= */

.nav nav ul li{
  margin:0;
  padding:0;
}

.nav nav ul li a{
  display:flex;
  align-items:center;
  justify-content:center;

  min-height:42px;

  padding:0 22px;

  border-radius:22px;

  font-size:18px;
  font-weight:700;
  line-height:1;

  color:#0f172a;
  text-decoration:none;

  transition:
    background .18s ease,
    color .18s ease,
    transform .18s ease,
    box-shadow .18s ease;
}

/* =========================================
   HOVER
   ========================================= */

.nav nav ul li a:hover{
  background:#eef8ff;
  color:#19a7e3;

  transform:translateY(-1px);
}

/* =========================================
   VOCE ATTIVA
   ========================================= */

.nav nav ul li.current-menu-item > a,
.nav nav ul li.current_page_item > a,
.nav nav ul li.current-menu-parent > a,
.nav nav ul li.current-menu-ancestor > a{
  background:#22aeea !important;
  color:#fff !important;

  min-height:42px;
  padding:0 22px !important;

  border-radius:22px;

  box-shadow:
    0 8px 18px rgba(34,174,234,.24);
}

/* =========================================
   LOGOUT
   ========================================= */

.nav nav ul li.menu-item-logout a{
  background:#f8fafc;

  border:1px solid rgba(15,23,42,.08);
}

.nav nav ul li.menu-item-logout a:hover{
  background:#fff1f2;
  color:#be123c;
}

/* =========================================
   CLICK
   ========================================= */

.nav nav ul li a:active{
  transform:scale(.97);
}

/* =========================================================
   B2B CARRELLO CUSTOM - SOLO PAGINA CARRELLO
   ========================================================= */

.dcv-b2b-cart-page .b2b-page-header{
  background:transparent !important;
  padding:0 !important;
  margin:0 0 18px !important;
}

.dcv-b2b-cart-page .b2b-page-header .page-head{
  background:transparent !important;
  padding:0 !important;
  box-shadow:none !important;
  border:none !important;
}

.dcv-b2b-cart-page .b2b-page-header h1{
  margin:0 !important;
  font-size:32px;
  font-weight:900;
}

/* tabella carrello */
.dcv-b2b-cart-page .products-table{
  width:100%;
  table-layout:fixed;
}

.dcv-b2b-cart-page .products-table th{
  font-size:15px;
  font-weight:800;
  letter-spacing:.02em;
  color:#475569;
}

.dcv-b2b-cart-page .products-table th:nth-child(1),
.dcv-b2b-cart-page .products-table td:nth-child(1){
  width:54px;
  text-align:center;
}

.dcv-b2b-cart-page .products-table th:nth-child(2),
.dcv-b2b-cart-page .products-table td:nth-child(2){
  width:90px;
}

.dcv-b2b-cart-page .products-table th:nth-child(3),
.dcv-b2b-cart-page .products-table td:nth-child(3){
  width:60%;
}

.dcv-b2b-cart-page .products-table th:nth-child(4),
.dcv-b2b-cart-page .products-table td:nth-child(4){
  width:95px;
  text-align:right;
  padding-right:10px;
}

.dcv-b2b-cart-page .products-table th:nth-child(5),
.dcv-b2b-cart-page .products-table td:nth-child(5){
  width:78px;
  text-align:right;
  padding-right:10px;
}

.dcv-b2b-cart-page .products-table th:nth-child(6),
.dcv-b2b-cart-page .products-table td:nth-child(6){
  width:100px;
  text-align:right;
  padding-right:10px;
}

.dcv-b2b-cart-page .products-table th:nth-child(7),
.dcv-b2b-cart-page .products-table td:nth-child(7){
  width:120px;
  text-align:right;
  padding-right:26px;
}

.dcv-b2b-cart-page .products-table td{
  vertical-align:middle;
  padding-top:10px;
  padding-bottom:10px;
  font-size:18px;
  font-weight:800;
  color:#0f172a;
}

.dcv-b2b-cart-page .products-table .b2b-name{
  font-size:18px;
  font-weight:800;
  line-height:1.2;
}

.dcv-b2b-cart-page .products-table .b2b-thumb{
  width:56px;
  height:56px;
  object-fit:contain;
  transition:transform .18s ease;
}

.dcv-b2b-cart-page .products-table tbody tr{
  transition:background .18s ease;
}

.dcv-b2b-cart-page .products-table tbody tr:hover{
  background:#f5fbff !important;
}

.dcv-b2b-cart-page .products-table tbody tr:hover .b2b-name{
  color:#2daae1 !important;
}

.dcv-b2b-cart-page .products-table tbody tr:hover img{
  transform:scale(1.04);
}
/* elimina - stile condiviso La mia lista / Carrello */
.dcv-mylist-table .cart-remove-like,
.dcv-b2b-cart-page .cart-remove-like{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border:none;
  background:transparent;
  color:#b40000;
  font-size:24px;
  line-height:1;
  font-weight:700;
  cursor:pointer;
  padding:0;
  box-shadow:none;
  border-radius:50%;
  transition:all .2s ease;
}

.dcv-mylist-table .cart-remove-like:hover,
.dcv-b2b-cart-page .cart-remove-like:hover{
  background:#b40000;
  color:#fff;
  transform:none;
}

.dcv-b2b-cart-page .products-table td:first-child{
  text-align:center;
}

/* quantità */
.dcv-b2b-cart-page .products-table .b2b-qty{
  width:64px;
  height:42px;
  border:1px solid #dbe3ea;
  border-radius:12px;
  text-align:center;
  font-size:18px;
  font-weight:800;
  color:#0f172a;
  background:#fff;
  box-sizing:border-box;
}

.dcv-b2b-cart-page .products-table .b2b-qty:focus{
  outline:2px solid rgba(34,174,234,.35);
  border-color:#22aeea;
}

/* unità */
.dcv-b2b-cart-page .products-table .b2b-unit{
  font-size:18px;
  font-weight:800;
  line-height:1;
}

.dcv-b2b-cart-page .products-table .b2b-cartoni{
  margin-top:4px;
  font-size:14px;
  font-weight:500;
  color:#64748b;
}

/* azioni */
.dcv-b2b-cart-page .b2b-cart-actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:14px;
  margin-top:18px;
}

.dcv-b2b-cart-page .b2b-cart-actions .btn{
  min-height:46px;
  border-radius:24px;
  padding:0 24px;
}

.dcv-b2b-cart-page .b2b-cart-back{
  background:#fff !important;
  color:#0f172a !important;
  border:1px solid rgba(15,23,42,.10) !important;
}

.dcv-b2b-cart-page .b2b-cart-back:hover{
  background:#f5fbff !important;
  color:#2daae1 !important;
}

/* Promo prezzo nel carrello: evita invasione colonna unità */
.dcv-b2b-cart-page .b2b-col-price .b2b-price-wrap{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  max-width:95px;
  margin-left:auto;
}

.dcv-b2b-cart-page .b2b-col-price .b2b-promo-badge{
  max-width:95px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:11px;
  line-height:1;
  padding:4px 6px;
}

.dcv-b2b-cart-page .b2b-col-price .b2b-price-old,
.dcv-b2b-cart-page .b2b-col-price .b2b-price-new{
  white-space:nowrap;
}
/* =========================================================
   TOTALI CARRELLO
   ========================================================= */

.dcv-b2b-cart-page .cart_totals{
  width:100%;
  max-width:520px;
  margin:34px 0 70px auto;
  background:#fff;
  border-radius:24px;
  padding:22px 32px;
  box-shadow:0 10px 30px rgba(15,23,42,.06);
  padding-right:26px;
  margin-top:28px;
}


.dcv-b2b-cart-page .cart_totals h2{
  margin:0 0 22px;
  font-size:16px;
  font-weight:800;
  color:#0f172a;
}

/* tabella */
.dcv-b2b-cart-page .cart_totals table{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
}

/* righe */
.dcv-b2b-cart-page .cart_totals th,
.dcv-b2b-cart-page .cart_totals td{
  padding:8px 0;
  border-bottom:1px solid #edf2f7;
  font-size:17px;
  color:#0f172a;
  vertical-align:middle;
}

/* colonna sinistra */
.dcv-b2b-cart-page .cart_totals th{
  width:68%;
  text-align:right;
  padding-right:28px;
  font-weight:700;
  white-space:nowrap;
}

/* colonna destra */
.dcv-b2b-cart-page .cart_totals td{
  width:42%;
  text-align:right;
  font-weight:600;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}

/* totale finale */
.dcv-b2b-cart-page .cart_totals tr.order-total th,
.dcv-b2b-cart-page .cart_totals tr.order-total td{
  border-bottom:0;
  font-size:20px;
  font-weight:800;
}

/* bottone checkout */
.dcv-b2b-cart-page .cart_totals .btn{
  width:100%;
  min-height:32px;
  border-radius:999px;
  font-size:18px;
  font-weight:800;
  margin-top:24px;
}

.dcv-b2b-cart-page button.btn{
  border:0;
  cursor:pointer;
}

/*schede di sicurezza*/

.b2b-product-sds{
  margin-top:6px;
  margin-bottom:4px;
}

.b2b-product-sds .b2b-sds-link{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0284c7 !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  line-height: 1;
  cursor: pointer;
}

.b2b-product-sds .b2b-sds-link::before{
  content: "PDF";
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: #0284c7;
  border-radius: 4px;
  padding: 2px 4px;
}

.b2b-product-sds .b2b-sds-link:hover{
  background: #bae6fd;
  color: #0369a1 !important;
}

.products-table .b2b-product-link{
  color:#0f172a;
  font-weight:700;
  text-decoration:none;
}

.products-table .b2b-name a{
  color:#0f172a;
  font-weight:700;
  text-decoration:none;
  transition:color .15s ease;
}

.products-table tbody td:nth-child(2) .b2b-name a{
  color:#0f172a !important;
  font-weight:700 !important;
  text-decoration:none !important;
}

.products-table .b2b-name a:hover{
  color:#27b3f6 !important;
  text-decoration:none !important;
}

.products-table tbody td:nth-child(2) .b2b-name a:hover{
  color:#27b3f6 !important;
  text-decoration:none !important;
}

/* metti in ordine azione e pdf nei miei ORDINE*/

.menu-item-cart > a{
  position:relative;
}

.dcv-cart-badge{
  position:absolute;
  top:-7px;
  right:-12px;

  min-width:17px;
  height:17px;
  padding:0 4px;

  border-radius:999px;

  background:#2daae1;
  color:#fff;

  border:2px solid #fff;

  font-size:10px;
  font-weight:800;
  line-height:1;

  display:flex;
  align-items:center;
  justify-content:center;

  box-sizing:border-box;
}

/* =========================================================
   STELLA MENU LA MIA LISTA
   ========================================================= */

.mylist-menu-star{
  color:#9aa3ad;
  font-weight:900;
  transition:color .2s ease;
}

.mylist-menu-star.active{
  color:#f5c400;
}


/* Ordini recenti - pulsanti verticali */

.dcv-orders-row .col-actions{
    text-align: center;

    display:flex;
    flex-direction:column;
    align-items:center;
    gap:8px;
}

.dcv-orders-row .col-actions .dcv-order-btn{
    display: inline-block;

    width:140px;
    text-align:center;
}


/* Riordina */
.dcv-reorder-btn{
    background:#2daae1;
    color:#fff !important;
}

/* PDF */
.dcv-order-pdf-btn{
    background:#ef4444;
    color:#fff !important;
}

.dcv-order-pdf-btn:hover{
    background:#dc2626;
}

/* Ordini recenti - numero ordine cliccabile */

.dcv-orders-row .col-id .dcv-order-link{
    color:#111827;
    font-weight:700;
    text-decoration:none;
}

.dcv-orders-row .col-id .dcv-order-link:hover{
    color:#2daae1;
    text-decoration:underline;
}


.b2b-product-link{
    color:inherit;
    text-decoration:none;

    
    
}

.products-table .b2b-product-link:hover{
  color:#2daae1;
  text-decoration:none !important;
}

/* =========================
   SCHEDA PRODOTTO - PREZZO PROMO
========================= */

.b2b-product-price-html{
  margin: 0 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.b2b-product-price-html .b2b-price-wrap{
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.b2b-product-price-html .b2b-promo-badge{
  display: inline-block;
  background: #d94a3a;
  color: #fff;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 11px !important;
  font-weight: 800;
  line-height: 1.1;
}

/* prezzo vecchio barrato */
.b2b-product-price-html .b2b-price-old,
.b2b-product-price-html .b2b-price-old .amount,
.b2b-product-price-html .b2b-price-old .woocommerce-Price-amount{
  color: #98a2b3 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  text-decoration: line-through !important;
}

/* prezzo nuovo scontato */
.b2b-product-price-html .b2b-price-new,
.b2b-product-price-html .b2b-price-new .amount,
.b2b-product-price-html .b2b-price-new .woocommerce-Price-amount{
  color: #ef3b2d !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.b2b-product-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
/* Catalogo pubblico: invito ad accedere o richiedere l'abilitazione B2B */
.dcv-public-price-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 210px;
}

.dcv-public-price-cta > strong {
  font-size: 14px;
  line-height: 1.35;
}

.dcv-public-price-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dcv-public-price-actions .btn {
  width: auto;
  min-height: 36px;
  padding: 8px 12px;
  font-size: 13px;
  white-space: nowrap;
}

.dcv-public-price-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 15px;
  border-radius: 999px;
  background: #24afe6;
  color: #fff;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, transform .2s ease;
}

.dcv-public-price-link:hover,
.dcv-public-price-link:focus {
  background: #168fc2;
  color: #fff;
  transform: translateY(-1px);
}

.dcv-public-catalog-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid rgba(36, 175, 230, .28);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 43, 63, .06);
}

.dcv-public-catalog-notice > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dcv-public-catalog-notice span {
  color: #586875;
  font-size: 14px;
}

.dcv-public-catalog-notice__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.dcv-public-catalog-notice__actions .btn {
  width: auto;
  min-height: 38px;
  padding: 9px 14px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .dcv-public-price-actions {
    flex-direction: column;
    width: 100%;
  }

  .dcv-public-price-actions .btn {
    width: 100%;
    text-align: center;
  }

  .dcv-public-catalog-notice {
    align-items: stretch;
    flex-direction: column;
  }

  .dcv-public-catalog-notice__actions {
    flex-direction: column;
  }

  .dcv-public-catalog-notice__actions .btn {
    width: 100%;
    text-align: center;
  }
}
/* Menu del sito vetrina per catalogo pubblico */
header.dcv-public-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  background: #fff;
  backdrop-filter: none;
  border-bottom: 1px solid rgba(15, 23, 42, .06);
}

header.dcv-public-header > .container {
  width: min(1100px, 92%) !important;
  max-width: 1100px !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
}

header.dcv-public-header .nav {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 14px 0;
}

header.dcv-public-header .brand {
  flex: 0 0 auto;
  margin-right: 0;
}

header.dcv-public-header .brand img {
  height: 82px !important;
  width: auto;
  max-width: none;
  border-radius: 0;
}

header.dcv-public-header .topnav {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
}

header.dcv-public-header .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

header.dcv-public-header .nav-links a {
  color: #334155;
  font-size: 1rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

header.dcv-public-header .nav-links a:hover {
  color: #0ea5e9;
}

header.dcv-public-header .cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

header.dcv-public-header .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

header.dcv-public-header .cta-b2b {
  background: #fff;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, .12);
}

header.dcv-public-header .cta-top {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(14, 165, 233, .25);
}

header.dcv-public-header .menu-btn {
  display: none;
}

@media (max-width: 1060px) {

  header.dcv-public-header .nav {
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    padding: 16px 0;
  }

  header.dcv-public-header .brand {
    width: 100%;
  }

  header.dcv-public-header .brand img {
    height: auto !important;
    width: auto;
    max-width: 100%;
  }

  header.dcv-public-header .topnav {
    width: 100%;
    flex: none;
    justify-content: flex-start;
  }

  header.dcv-public-header .nav-links,
  header.dcv-public-header .cta-wrap {
    display: none !important;
  }

  header.dcv-public-header .menu-btn {
    display: inline-flex !important;
    align-items: center;
    gap: .45rem;
    margin: 0;
    padding: .55rem .75rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, .12);
    background: rgba(255, 255, 255, .85);
  }
}


/* =========================================================
   SOLUZIONI TECNICHE - CATALOGO PER ESIGENZA
   ========================================================= */

.b2b-need-products {
  margin-top: 22px;
}
.b2b-need-products h3 {
  margin: 0 0 14px;
}
.b2b-need-products__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.b2b-need-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.b2b-need-product-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}
.b2b-need-product-card__image {
  width: 100%;
  height: 150px;
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.b2b-need-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.b2b-need-product-card__noimage {
  font-size: 12px;
  opacity: .55;
}
.b2b-need-product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.b2b-need-product-card__name {
  display: block;
  font-size: 17px;
  line-height: 1.3;
  margin-bottom: 4px;
}
.b2b-need-product-card__sku {
  display: block;
  margin-bottom: 8px;
  opacity: .6;
}
.b2b-need-product-card__body p {
  margin: 0 0 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.b2b-need-product-card__button {
  display: inline-block;
  margin-top: auto;
  align-self: flex-start;
}
.b2b-need-category-link {
  font-weight: 600;
}
@media (max-width: 980px) {
  .b2b-need-products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .b2b-need-products__grid {
    grid-template-columns: 1fr;
  }
  .b2b-need-product-card__image {
    height: 180px;
  }
}


.b2b-need-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0 22px;
}
.b2b-need-report-box {
  padding: 14px 16px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 12px;
  background: #f8fafc;
}
.b2b-need-report-box h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.b2b-need-report-box ul {
  margin: 0;
  padding-left: 20px;
}
.b2b-need-report-box li {
  margin: 4px 0;
  line-height: 1.4;
}
@media (max-width: 700px) {
  .b2b-need-report-grid {
    grid-template-columns: 1fr;
  }
}

.b2b-catalogo .search input{
  flex: 1 1 260px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;

  
  
  border:1px solid rgba(15,23,42,.12);
  
  background:#fff;
}
.b2b-catalogo .search{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 18px 0 22px;

  
  
  
  

  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  border-radius:14px;
  padding:12px; 
}

/* =========================================================
   RICERCA PER ESIGENZA / SOLUZIONE TECNICA
   ========================================================= */

.b2b-need-entry{
  margin:18px 0 24px;
  padding:20px 22px;
  border:1px solid #dfe5ea;
  border-radius:12px;
  background:#fafbfd;
}

.b2b-need-entry{
  scroll-margin-top: 140px;
}

.b2b-need-entry.is-highlighted{
  border-color:#38bdf8;
  box-shadow:0 0 0 4px rgba(56,189,248,.18),
             0 12px 30px rgba(15,23,42,.10);
  transition:border-color .3s ease, box-shadow .3s ease;
}

.b2b-need-entry__head h2{
  margin:0 0 5px;
  font-size:1.18rem;
}

.b2b-need-title{
  display:flex;
  align-items:center;
  gap:10px;
}

.b2b-need-title__icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 34px;
  width:34px;
  height:34px;
  border-radius:9px;
  background:#e7f7fd;
  color:#159fd6;
  border:1px solid #b9e5f6;
}

.b2b-need-title__icon svg{
  width:19px;
  height:19px;
}

.b2b-need-entry__head p{
  margin:0;
  color:#5e6872;
}

.b2b-need-form{
  margin-top:15px;
}

.b2b-need-form label{
  display:block;
  font-weight:700;
  margin-bottom:7px;
}

.b2b-need-form__row{
  display:flex;
  gap:10px;
  align-items:center;
}

.b2b-need-form textarea{
  flex:1;
  min-height:54px;
  height:54px;
  resize:vertical;
  padding:10px 13px;
  border:1px solid #cbd3da;
  border-radius:8px;
  font:inherit;
  background:#fff;
}

.b2b-need-form textarea:focus{
  border-color:#25afe5 !important;
  outline:2px solid #25afe5 !important;
  outline-offset:1px;
  box-shadow:none !important;
}

.b2b-need-form button{
  min-width:170px;
  height:46px;
  border:0;
  border-radius:8px;
  padding:0 18px;
  background:#25afe5;
  color:#fff;
  font-weight:700;
  cursor:pointer;
}

.b2b-need-form__note{
  margin:9px 0 0;
  font-size:.88rem;
  color:#6b747d;
}


/* =========================================================
   RISULTATI RICERCA PER ESIGENZA
   ========================================================= */

.b2b-need-result{
  margin:20px 0 28px;
}

.b2b-need-result__query{
  margin-bottom:10px;
  color:#5e6872;
}

.b2b-need-result__card{
  padding:22px;
  border:1px solid #d7dee5;
  border-radius:12px;
  background:#fff;
}

.b2b-need-result__eyebrow{
  text-transform:uppercase;
  letter-spacing:.06em;
  font-size:.76rem;
  font-weight:700;
  color:#64717d;
  margin-bottom:5px;
}

.b2b-need-result__card h2{
  margin:0 0 10px;
  font-size:1.35rem;
}

.b2b-need-result__summary{
  font-size:1.02rem;
  margin:0 0 16px;
}

.b2b-need-check{
  padding:14px 16px;
  background:#f5f7f9;
  border-radius:8px;
  margin:14px 0 18px;
}

.b2b-need-check p{
  margin:5px 0 0;
}

.b2b-need-actions{
  display:flex;
  gap:15px;
  align-items:center;
  flex-wrap:wrap;
}

.b2b-need-reset{
  text-decoration:underline;
}

.b2b-need-result__card--neutral{
  background:#fafbfd;
}

.b2b-need-result__card--clarify{
  border-color:#cbd8e3;
}

.b2b-need-result__card--partial{
  border-color:#c7d5df;
}


/* =========================================================
   FALLBACK / SELEZIONE AREA TECNICA
   ========================================================= */

.b2b-need-fallback-actions{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  margin-top:14px;
}

.b2b-need-fallback-open{
  border:0;
  border-radius:10px;
  padding:12px 18px;
  background:#25afe5;
  color:#fff;
  font:inherit;
  font-weight:750;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(37,175,229,.16);
}

.b2b-need-fallback-open:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(37,175,229,.22);
}

.b2b-need-fallback{
  margin-top:24px;
  padding-top:22px;
  border-top:1px solid #d7e5ee;
}

.b2b-need-fallback,
.b2b-need-area-panel{
  scroll-margin-top:120px;
}

.b2b-need-fallback__intro{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-bottom:18px;
}

.b2b-need-fallback__step,
.b2b-need-area-panel__step{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 32px;
  width:32px;
  height:32px;
  border-radius:50%;
  background:#e7f7fd;
  color:#118ec4;
  font-weight:800;
  border:1px solid #b9e5f6;
}

.b2b-need-fallback__intro h3{
  margin:1px 0 5px;
  font-size:1.2rem;
  color:#172333;
}

.b2b-need-fallback__intro p{
  margin:0;
  color:#63707b;
}


/* =========================================================
   AREE TECNICHE
   ========================================================= */

.b2b-need-area-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:12px;
}

.b2b-need-area-card{
  position:relative;
  display:grid;
  grid-template-columns:42px 1fr 18px;
  align-items:center;
  gap:12px;
  text-align:left;
  min-height:82px;
  padding:14px 15px;
  border:1px solid #cddce6;
  border-radius:13px;
  background:linear-gradient(180deg,#fff 0%,#f8fcfe 100%);
  color:#172333;
  font:inherit;
  cursor:pointer;
  transition:
    transform .15s ease,
    border-color .15s ease,
    box-shadow .15s ease,
    background .15s ease;
}

.b2b-need-area-card__icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:11px;
  background:#eaf7fc;
  color:#179fd6;
  font-size:1.25rem;
  font-weight:800;
}

.b2b-need-area-card__text{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}

.b2b-need-area-card__text strong{
  font-weight:800;
  line-height:1.2;
}

.b2b-need-area-card__text small{
  color:#73818c;
  font-size:.84rem;
}

.b2b-need-area-card__arrow{
  font-size:1.45rem;
  color:#8fa1ad;
  line-height:1;
}

.b2b-need-area-card:hover{
  transform:translateY(-2px);
  border-color:#72c9ec;
  box-shadow:0 8px 18px rgba(37,175,229,.10);
}

.b2b-need-area-card.is-active{
  border-color:#25afe5;
  background:linear-gradient(180deg,#eefaff 0%,#e7f7fd 100%);
  box-shadow:
    0 0 0 2px rgba(37,175,229,.12),
    0 8px 18px rgba(37,175,229,.10);
}

.b2b-need-area-card.is-active .b2b-need-area-card__icon{
  background:#25afe5;
  color:#fff;
}

.b2b-need-area-card.is-active .b2b-need-area-card__arrow{
  color:#179fd6;
}


/* =========================================================
   PANNELLO SOLUZIONI
   ========================================================= */

.b2b-need-area-results{
  margin-top:18px;
}

.b2b-need-area-panel{
  padding:18px;
  border:1px solid #cfe1eb;
  border-radius:14px;
  background:linear-gradient(180deg,#fafdff 0%,#fff 100%);
  box-shadow:0 8px 24px rgba(23,35,51,.05);
}

.b2b-need-area-panel__head{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-bottom:15px;
  padding-bottom:14px;
  border-bottom:1px solid #e3edf3;
}

.b2b-need-area-panel__head>div{
  display:flex;
  flex-direction:column;
  gap:3px;
}

.b2b-need-area-panel__eyebrow{
  font-size:.7rem;
  letter-spacing:.08em;
  font-weight:800;
  color:#159dcc;
}

.b2b-need-area-panel__head strong{
  font-size:1.13rem;
  color:#172333;
}

.b2b-need-area-panel__head>div>span:last-child{
  color:#697680;
  font-size:.92rem;
}

.b2b-need-solution-list{
  display:grid;
  gap:10px;
}

.b2b-need-solution-link{
  display:grid;
  grid-template-columns:24px 1fr 24px;
  align-items:center;
  gap:11px;
  padding:13px 14px;
  border:1px solid #dde8ee;
  border-radius:10px;
  background:#fff;
  text-decoration:none;
  color:#172333;
  transition:
    transform .14s ease,
    border-color .14s ease,
    box-shadow .14s ease;
}

.b2b-need-solution-link__mark{
  display:flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  border-radius:50%;
  background:#eaf7fc;
  color:#179fd6;
  font-size:1rem;
  font-weight:900;
}

.b2b-need-solution-link__body{
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
}

.b2b-need-solution-link__body strong{
  font-weight:760;
  line-height:1.25;
}

.b2b-need-solution-link__body small{
  color:#74818c;
  font-size:.84rem;
  font-weight:500;
  line-height:1.3;
}

.b2b-need-solution-link__arrow{
  justify-self:end;
  color:#6c7a85;
  font-size:1.05rem;
}

.b2b-need-solution-link:hover{
  transform:translateX(2px);
  border-color:#73caec;
  box-shadow:0 6px 16px rgba(37,175,229,.08);
  background:#fbfeff;
}


/* =========================================================
   CHIARIMENTI
   ========================================================= */

.b2b-need-understood{
  margin: 8px 0 16px;

  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  margin:8px 0 18px;
  color:#5e6872;
}

.b2b-need-understood strong{
  color:#1f2933;
  margin-right:2px;
}

.b2b-need-understood span{
  display:inline-flex;
  padding:5px 9px;
  border-radius:999px;
  background:#f0f4f7;
  font-size:.9rem;
}

.b2b-need-options{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:18px 0 4px;
}

.b2b-need-option{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border:1px solid #b9c7d2;
  border-radius:9px;
  background:#fff;
  text-decoration:none;
  font-weight:700;
  color:inherit;
}

.b2b-need-option:hover{
  border-color:#5aaed8;
}

.b2b-need-actions--minor{
  margin-top:18px;
}

.b2b-need-example{
  color:#5e6872;
}


/* =========================================================
   RISULTATI PARZIALI
   ========================================================= */

.b2b-need-partial-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin:14px 0;
}

.b2b-need-partial-grid>div{
  background:#f4f7f9;
  border-radius:10px;
  padding:14px 16px;
}

.b2b-need-partial-grid ul{
  margin:8px 0 0 18px;
  padding:0;
}

.b2b-need-partial-grid li{
  margin:4px 0;
}


/* =========================================================
   RICERCA PRODOTTO
   ========================================================= */

.b2b-search-form{
  margin:18px 0 24px !important;
  padding:20px 22px !important;
  border:1px solid #dfe5ea !important;
  border-radius:12px !important;
  background:#fafbfd !important;
}

.b2b-search-form input[type="search"]:focus{
  border-color:#25afe5 !important;
  outline:2px solid #25afe5 !important;
  outline-offset:1px;
  box-shadow:none !important;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media(max-width:850px){
  .b2b-need-area-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:720px){
  .b2b-need-form__row{
    display:block;
  }

  .b2b-need-form button{
    width:100%;
    height:46px;
    min-height:46px;
    margin-top:9px;
  }
}

@media(max-width:700px){
  .b2b-need-partial-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:560px){
  .b2b-need-area-grid{
    grid-template-columns:1fr;
  }

  .b2b-need-fallback-actions{
    align-items:stretch;
  }

  .b2b-need-fallback-open{
    width:100%;
  }

  .b2b-need-area-card{
    min-height:74px;
  }

  .b2b-need-solution-link{
    grid-template-columns:22px 1fr 20px;
  }
}

/* =========================================================
   INTRO CATEGORIE CATALOGO
   ========================================================= */

.b2b-category-intro{
  margin:28px 0 14px;
}

.b2b-category-intro h2{
  margin:0 0 5px;
  font-size:1.28rem;
  line-height:1.2;
  color:#172333;
}

.b2b-category-intro p{
  margin:0;
  color:#6b7782;
  font-size:.95rem;
  line-height:1.45;
}

/* Allineamento colonne operative catalogo */
.products-table thead th:nth-child(4),
.products-table tbody td:nth-child(4), /* Prezzo */

.products-table thead th:nth-child(6),
.products-table tbody td:nth-child(6), /* Q.tà */

.products-table thead th:nth-child(7),
.products-table tbody td:nth-child(7){ /* Azione */
  text-align:center !important;
}