/* ============================================================
   I.M. Distribuzione V15.29 — Carrello Preventivi ad alto contrasto
   Rimuove glass/blur dal drawer e rende ogni elemento leggibile.
   ============================================================ */

/* Overlay: oscura la pagina, ma niente vetro / sfocatura. */
body.imv151-catalog div.fixed.inset-0.z-40,
body.imv15-interior div.fixed.inset-0.z-40 {
  background: rgba(7, 27, 21, .52) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
}

/* Drawer principale: superficie piena, non trasparente. */
body.imv151-catalog div[class*="fixed right-0 top-0 h-full w-96"],
body.imv15-interior div[class*="fixed right-0 top-0 h-full w-96"] {
  width: min(430px, 94vw) !important;
  background: #f4f8f5 !important;
  background-image: none !important;
  border-left: 1px solid #bfd2c6 !important;
  color: #17382d !important;
  -webkit-text-fill-color: #17382d !important;
  box-shadow: -18px 0 42px rgba(10, 47, 35, .28) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  opacity: 1 !important;
}

body.imv151-catalog div[class*="fixed right-0 top-0 h-full w-96"] > div,
body.imv15-interior div[class*="fixed right-0 top-0 h-full w-96"] > div {
  background: transparent !important;
  color: #17382d !important;
  -webkit-text-fill-color: #17382d !important;
}

/* Tipografia del drawer. */
body.imv151-catalog div[class*="fixed right-0 top-0 h-full w-96"] :is(h2,h3,p,span),
body.imv15-interior div[class*="fixed right-0 top-0 h-full w-96"] :is(h2,h3,p,span) {
  text-shadow: none !important;
  opacity: 1 !important;
}
body.imv151-catalog div[class*="fixed right-0 top-0 h-full w-96"] h2,
body.imv15-interior div[class*="fixed right-0 top-0 h-full w-96"] h2 {
  color: #0b4d34 !important;
  -webkit-text-fill-color: #0b4d34 !important;
  font-weight: 900 !important;
}
body.imv151-catalog div[class*="fixed right-0 top-0 h-full w-96"] h3,
body.imv15-interior div[class*="fixed right-0 top-0 h-full w-96"] h3 {
  color: #17382d !important;
  -webkit-text-fill-color: #17382d !important;
  font-weight: 800 !important;
}
body.imv151-catalog div[class*="fixed right-0 top-0 h-full w-96"] p,
body.imv151-catalog div[class*="fixed right-0 top-0 h-full w-96"] span,
body.imv15-interior div[class*="fixed right-0 top-0 h-full w-96"] p,
body.imv15-interior div[class*="fixed right-0 top-0 h-full w-96"] span {
  color: #4f655b !important;
  -webkit-text-fill-color: #4f655b !important;
}

/* Contatore carrello. */
body.imv151-catalog div[class*="fixed right-0 top-0 h-full w-96"] [class*="bg-[#2BB673]/10"],
body.imv15-interior div[class*="fixed right-0 top-0 h-full w-96"] [class*="bg-[#2BB673]/10"] {
  background: #0f7a4e !important;
  border-color: #0f7a4e !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Card dei singoli prodotti. */
body.imv151-catalog div[class*="fixed right-0 top-0 h-full w-96"] [class*="bg-[hsl(220,18%,10%)]"],
body.imv15-interior div[class*="fixed right-0 top-0 h-full w-96"] [class*="bg-[hsl(220,18%,10%)]"] {
  background: #ffffff !important;
  border: 1px solid #cfddd5 !important;
  box-shadow: 0 7px 17px rgba(27, 73, 55, .08) !important;
}

/* Titolo/categoria/prezzi dentro le card. */
body.imv151-catalog div[class*="fixed right-0 top-0 h-full w-96"] [class*="bg-[hsl(220,18%,10%)]"] h3,
body.imv15-interior div[class*="fixed right-0 top-0 h-full w-96"] [class*="bg-[hsl(220,18%,10%)]"] h3 {
  color: #123c2d !important;
  -webkit-text-fill-color: #123c2d !important;
}
body.imv151-catalog div[class*="fixed right-0 top-0 h-full w-96"] [class*="bg-[hsl(220,18%,10%)]"] p,
body.imv15-interior div[class*="fixed right-0 top-0 h-full w-96"] [class*="bg-[hsl(220,18%,10%)]"] p {
  color: #52665d !important;
  -webkit-text-fill-color: #52665d !important;
}
body.imv151-catalog div[class*="fixed right-0 top-0 h-full w-96"] [class*="text-[#87C38F]"],
body.imv15-interior div[class*="fixed right-0 top-0 h-full w-96"] [class*="text-[#87C38F]"] {
  color: #0f7a4e !important;
  -webkit-text-fill-color: #0f7a4e !important;
  font-weight: 900 !important;
}
body.imv151-catalog div[class*="fixed right-0 top-0 h-full w-96"] [class*="text-amber-400"],
body.imv15-interior div[class*="fixed right-0 top-0 h-full w-96"] [class*="text-amber-400"] {
  color: #916000 !important;
  -webkit-text-fill-color: #916000 !important;
  font-weight: 800 !important;
}

/* +/- quantità e chiusura: veri pulsanti bianchi ad alto contrasto. */
body.imv151-catalog div[class*="fixed right-0 top-0 h-full w-96"] button[class*="border-[hsl"],
body.imv15-interior div[class*="fixed right-0 top-0 h-full w-96"] button[class*="border-[hsl"] {
  background: #ffffff !important;
  border-color: #bed1c6 !important;
  color: #174b37 !important;
  -webkit-text-fill-color: #174b37 !important;
  box-shadow: 0 3px 8px rgba(27, 73, 55, .08) !important;
}
body.imv151-catalog div[class*="fixed right-0 top-0 h-full w-96"] button[class*="border-[hsl"]:hover,
body.imv15-interior div[class*="fixed right-0 top-0 h-full w-96"] button[class*="border-[hsl"]:hover {
  background: #e7f3ec !important;
  border-color: #83ab96 !important;
  color: #0f6f47 !important;
  -webkit-text-fill-color: #0f6f47 !important;
}

/* Pulsante X in alto. */
body.imv151-catalog div[class*="fixed right-0 top-0 h-full w-96"] > div > div:first-child button,
body.imv15-interior div[class*="fixed right-0 top-0 h-full w-96"] > div > div:first-child button {
  background: #ffffff !important;
  border: 1px solid #cbdad2 !important;
  color: #17382d !important;
  -webkit-text-fill-color: #17382d !important;
  box-shadow: 0 4px 10px rgba(27, 73, 55, .10) !important;
}

/* Totale: blocco solido, chiaro e ben separato. */
body.imv151-catalog div[class*="fixed right-0 top-0 h-full w-96"] [class*="bg-[#2BB673]/5"],
body.imv15-interior div[class*="fixed right-0 top-0 h-full w-96"] [class*="bg-[#2BB673]/5"] {
  background: #e5f2ea !important;
  border: 1px solid #a9c9b7 !important;
  box-shadow: none !important;
}
body.imv151-catalog div[class*="fixed right-0 top-0 h-full w-96"] [class*="bg-[#2BB673]/5"] span,
body.imv15-interior div[class*="fixed right-0 top-0 h-full w-96"] [class*="bg-[#2BB673]/5"] span {
  color: #153d2e !important;
  -webkit-text-fill-color: #153d2e !important;
}
body.imv151-catalog div[class*="fixed right-0 top-0 h-full w-96"] [class*="bg-[#2BB673]/5"] p,
body.imv15-interior div[class*="fixed right-0 top-0 h-full w-96"] [class*="bg-[#2BB673]/5"] p {
  color: #566a60 !important;
  -webkit-text-fill-color: #566a60 !important;
}

/* Area contatti: niente trasparenza, fondo verde chiarissimo. */
body.imv151-catalog div[class*="fixed right-0 top-0 h-full w-96"] [class*="bg-emerald-500/5"],
body.imv15-interior div[class*="fixed right-0 top-0 h-full w-96"] [class*="bg-emerald-500/5"] {
  background: #edf8f1 !important;
  border: 1px solid #abd4bd !important;
  box-shadow: none !important;
}
body.imv151-catalog div[class*="fixed right-0 top-0 h-full w-96"] [class*="bg-emerald-500/5"] h3,
body.imv15-interior div[class*="fixed right-0 top-0 h-full w-96"] [class*="bg-emerald-500/5"] h3 {
  color: #0d6a43 !important;
  -webkit-text-fill-color: #0d6a43 !important;
}
body.imv151-catalog div[class*="fixed right-0 top-0 h-full w-96"] [class*="bg-emerald-500/5"] span,
body.imv15-interior div[class*="fixed right-0 top-0 h-full w-96"] [class*="bg-emerald-500/5"] span {
  color: #2e5444 !important;
  -webkit-text-fill-color: #2e5444 !important;
}

/* CTA principali: colori pieni e testo bianco. */
body.imv151-catalog div[class*="fixed right-0 top-0 h-full w-96"] button[class*="bg-emerald-600"],
body.imv15-interior div[class*="fixed right-0 top-0 h-full w-96"] button[class*="bg-emerald-600"] {
  background: #16784d !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 0 !important;
  box-shadow: 0 7px 16px rgba(15,111,71,.18) !important;
}
body.imv151-catalog div[class*="fixed right-0 top-0 h-full w-96"] button[class*="bg-[#2BB673]"],
body.imv15-interior div[class*="fixed right-0 top-0 h-full w-96"] button[class*="bg-[#2BB673]"] {
  background: #0f6f47 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 0 !important;
  box-shadow: 0 7px 16px rgba(15,111,71,.18) !important;
}
body.imv151-catalog div[class*="fixed right-0 top-0 h-full w-96"] button[class*="text-red-400"],
body.imv15-interior div[class*="fixed right-0 top-0 h-full w-96"] button[class*="text-red-400"] {
  background: #fff3f2 !important;
  border: 1px solid #e7aaa5 !important;
  color: #a72e27 !important;
  -webkit-text-fill-color: #a72e27 !important;
}
body.imv151-catalog div[class*="fixed right-0 top-0 h-full w-96"] button[class*="text-red-400"]:hover,
body.imv15-interior div[class*="fixed right-0 top-0 h-full w-96"] button[class*="text-red-400"]:hover {
  background: #c9362f !important;
  border-color: #c9362f !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* SVG/icona: leggibilità coerente. */
body.imv151-catalog div[class*="fixed right-0 top-0 h-full w-96"] svg,
body.imv15-interior div[class*="fixed right-0 top-0 h-full w-96"] svg {
  opacity: 1 !important;
}

/* Scrollbar discreta ma visibile. */
body.imv151-catalog div[class*="fixed right-0 top-0 h-full w-96"]::-webkit-scrollbar,
body.imv15-interior div[class*="fixed right-0 top-0 h-full w-96"]::-webkit-scrollbar {
  width: 10px;
}
body.imv151-catalog div[class*="fixed right-0 top-0 h-full w-96"]::-webkit-scrollbar-track,
body.imv15-interior div[class*="fixed right-0 top-0 h-full w-96"]::-webkit-scrollbar-track {
  background: #e4ece7;
}
body.imv151-catalog div[class*="fixed right-0 top-0 h-full w-96"]::-webkit-scrollbar-thumb,
body.imv15-interior div[class*="fixed right-0 top-0 h-full w-96"]::-webkit-scrollbar-thumb {
  background: #8eaa9a;
  border-radius: 999px;
  border: 2px solid #e4ece7;
}

@media (max-width: 520px) {
  body.imv151-catalog div[class*="fixed right-0 top-0 h-full w-96"],
  body.imv15-interior div[class*="fixed right-0 top-0 h-full w-96"] {
    width: 100vw !important;
    max-width: 100vw !important;
    border-left: 0 !important;
  }
}
