html body header.site-header > .header-inner > .molisan-header-tools {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible;
  justify-self: end;
}

html[data-molisan-v2] body header.site-header > .header-inner > .molisan-header-tools {
  grid-area: languages !important;
}

@media (max-width: 1180px) {
  html:not([data-molisan-v2]) body header.site-header > .header-inner > .molisan-header-tools {
    order: 5;
  }
}

.site-header .molisan-header-tools .molisan-language-choice {
  position: relative;
  flex: none;
}

.site-header .molisan-header-tools .molisan-language-choice > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  padding: 0 6px;
  border-radius: 5px;
  color: var(--deep, #28332e);
  list-style: none;
  cursor: pointer;
  font: 700 12px/1 Arial, Helvetica, sans-serif;
}

.site-header .molisan-header-tools .molisan-language-choice > summary::-webkit-details-marker {
  display: none;
}

.site-header .molisan-language-choice > summary svg {
  width: 10px;
  height: 7px;
}

.site-header .molisan-language-choice[open] > summary,
.site-header .molisan-language-choice > summary:hover {
  background: #edf1e7;
}

.site-header .molisan-language-choice > summary:focus-visible {
  outline: 2px solid #874735;
  outline-offset: 2px;
}

html body .site-header .molisan-language-choice > nav.language-nav.molisan-language-options {
  position: absolute;
  display: grid !important;
  z-index: 60;
  inset-block-start: 100%;
  inset-inline-end: 0;
  min-width: 60px;
  margin: 0;
  padding: 4px;
  border: 1px solid #deddd4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 18px #23262314;
}

html body .site-header .molisan-language-choice:not([open]) > nav.language-nav.molisan-language-options {
  display: none !important;
}

html body .site-header .molisan-header-tools .molisan-language-options a[href] {
  position: static;
  display: grid !important;
  place-items: center;
  min-width: 48px !important;
  min-height: 44px;
  border-radius: 5px;
  color: #28332e !important;
  font: 700 12px/1 Arial, Helvetica, sans-serif !important;
}

html body .site-header .molisan-header-tools .molisan-language-options a:is(:hover, [aria-current="page"]) {
  background: #edf1e7 !important;
}

html body .site-header .molisan-header-tools .molisan-language-options a::before,
html body .site-header .molisan-header-tools .molisan-language-options a::after {
  display: none !important;
}

html body .site-header .molisan-header-tools > a.molisan-visitor-counter {
  position: relative;
  display: flex !important;
  justify-content: center;
  align-items: center;
  width: 36px !important;
  min-width: 36px !important;
  height: 44px !important;
  min-height: 44px;
  padding: 0 !important;
  color: #215f4b !important;
}

.site-header .molisan-header-tools > .molisan-visitor-counter svg {
  width: 21px;
  height: 21px;
}

.site-header .molisan-header-tools :is(.molisan-counter-menu-title, .molisan-counter-menu-label) {
  display: none;
}

.site-header .molisan-header-tools .molisan-counter-metric {
  position: absolute;
  top: 0;
  right: -2px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1.3rem;
  height: 1.3rem;
  padding: 0 3px;
  border-radius: 50px;
  background: #874735;
  color: #fff;
  font: 700 .7rem/1 Arial, Helvetica, sans-serif;
}

html[data-molisan-v2] .site-header .molisan-header-tools .molisan-counter-metric {
  top: 2px;
  right: -3px;
  min-width: 15px;
  height: 15px;
  border-radius: 20px;
  background: #b65031;
  font-size: 9px;
}

/* Use the same layer as the product header's important layout rules. */
@layer molisan-preview-chrome {
  @media (max-width: 767px) {
    html body header.site-header:has(> .molisan-compact-header) {
      background: #fff !important;
      border-bottom: 1px solid #e2e7db !important;
      color: #24483b !important;
    }

    html body header.site-header > .header-inner.molisan-compact-header {
      display: grid !important;
      grid-template-columns: 44px minmax(0, 1fr) 46px 44px 44px !important;
      grid-template-areas: "menu brand languages search cart" !important;
      align-items: center !important;
      gap: clamp(2px, 1vw, 7px) !important;
      width: 100% !important;
      min-height: 66px !important;
      padding: 8px clamp(8px, 3vw, 20px) !important;
    }

    html body header.site-header > .header-inner.molisan-compact-header > .brand {
      grid-area: brand !important;
      width: min(100%, 96px) !important;
      max-width: 100% !important;
      justify-self: start !important;
      margin: 0 !important;
    }

    html body header.site-header > .header-inner.molisan-compact-header > .mobile-menu {
      grid-area: menu !important;
      display: block !important;
      position: static !important;
      width: 44px !important;
      min-width: 0 !important;
    }

    html body header.site-header > .header-inner.molisan-compact-header > .molisan-header-tools {
      grid-area: languages !important;
    }

    html body header.site-header > .header-inner.molisan-compact-header > .header-search {
      grid-area: search !important;
    }

    html body header.site-header > .header-inner.molisan-compact-header > .molisan-cart-link {
      grid-area: cart !important;
    }

    html body header.site-header > .header-inner.molisan-compact-header :is(
      .mobile-menu > summary, .header-search > summary, .molisan-language-choice > summary, .molisan-cart-link
    ) {
      box-sizing: border-box !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      width: 44px !important;
      min-width: 44px !important;
      height: 44px !important;
      min-height: 44px !important;
      padding: 0 !important;
      margin: 0 !important;
      border: 0 !important;
      border-radius: 11px !important;
      background: transparent !important;
      color: #24483b !important;
      box-shadow: none !important;
    }

    html body header.site-header > .header-inner.molisan-compact-header :is(
      .molisan-language-choice > summary, .molisan-cart-link
    ) {
      background: #f1f4eb !important;
    }

    html body header.site-header > .header-inner.molisan-compact-header :is(
      details[open] > summary, .molisan-cart-link:hover
    ) {
      background: #e6ecdf !important;
    }

    html body header.site-header > .header-inner.molisan-compact-header .molisan-language-choice > summary {
      width: 46px !important;
      gap: 6px !important;
      font-size: 12px !important;
    }

    html body header.site-header > .header-inner.molisan-compact-header .mobile-menu > summary {
      position: relative !important;
      font-size: 0 !important;
    }

    html body header.site-header > .header-inner.molisan-compact-header .mobile-menu > summary > svg,
    html body header.site-header > .header-inner.molisan-compact-header .mobile-menu > summary::after {
      display: none !important;
    }

    html body header.site-header > .header-inner.molisan-compact-header .mobile-menu > summary::before {
      position: static !important;
      display: block !important;
      width: 14px !important;
      height: 11px !important;
      margin: 0 !important;
      border: 0 !important;
      background: linear-gradient(currentColor, currentColor) top / 100% 1.5px no-repeat,
        linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
        linear-gradient(currentColor, currentColor) bottom / 100% 1.5px no-repeat !important;
      transform: none !important;
      content: "" !important;
    }

    html body header.site-header > .header-inner.molisan-compact-header .mobile-menu .mobile-nav-content {
      padding-top: 10px !important;
    }

    html body header.site-header > .header-inner.molisan-compact-header .molisan-cart-link .cart-link-label {
      display: none !important;
    }

    html body header.site-header > .header-inner.molisan-compact-header .molisan-cart-link .cart-count {
      position: absolute !important;
      top: 0 !important;
      right: 1px !important;
      min-width: 17px !important;
      width: auto !important;
      height: 17px !important;
      padding: 0 3px !important;
      border-radius: 20px !important;
      background: #b65031 !important;
      color: #fff !important;
      font: 700 10px/17px Arial, Helvetica, sans-serif !important;
    }

    html body header.site-header > .header-inner.molisan-compact-header .mobile-nav-content > :is(
      .molisan-visitor-counter, .molisan-whatsapp
    ) {
      position: static !important;
      display: flex !important;
      align-items: center !important;
      justify-content: flex-start !important;
      gap: 10px !important;
      width: 100% !important;
      min-height: 44px !important;
      height: auto !important;
      padding: 10px 8px !important;
      color: inherit !important;
      border-radius: 5px !important;
    }

    html body header.site-header > .header-inner.molisan-compact-header .mobile-nav-content > :is(
      .molisan-visitor-counter, .molisan-whatsapp
    ) > span {
      display: inline-flex !important;
    }

    html body header.site-header > .header-inner.molisan-compact-header .mobile-nav-content .molisan-counter-metric {
      display: inline-flex !important;
      align-items: center;
      justify-content: center;
      min-width: 17px;
      min-height: 17px;
      padding: 0 4px;
      border-radius: 20px;
      background: #b65031;
      color: #fff;
      font: 700 10px/1 Arial, Helvetica, sans-serif;
    }
  }
}
