/* Original Die Bodega layout assets; retain the existing links and counters. */
body :is(#page .masthead, #phantom) a.wishlist_products_counter::before,
body :is(#page .masthead, #phantom) a.wc-ico-cart > i,
body :is(#page .masthead, #phantom) i[class*="the7-login-"],
body :is(#page .masthead, #phantom) .mini-search .search-icon > i {
  display: inline-block !important;
  flex-shrink: 0;
  box-sizing: border-box;
  background-color: #342f2c !important;
  background-image: none !important;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  font-size: 0 !important;
  line-height: 1 !important;
  vertical-align: middle;
  transform: none !important;
  pointer-events: none;
  margin: 0 !important;
}

/* Layout reference: 44px targets, icon centres 58px then 54px apart. */
@media (min-width: 1101px) {
  html body #page .masthead .header-bar > .mini-widgets,
  html body #phantom .header-bar > .mini-widgets {
    gap: 0 !important;
    padding: 0 !important;
    flex-wrap: nowrap !important;
  }
  html body #page .masthead .header-bar > .mini-widgets > *,
  html body #phantom .header-bar > .mini-widgets > * {
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  html body #page .masthead .header-bar > .mini-widgets > :has(a.wishlist_products_counter),
  html body #phantom .header-bar > .mini-widgets > :has(a.wishlist_products_counter) {
    margin-right: 14px !important;
  }
  html body #page .masthead .header-bar > .mini-widgets > a.mini-contacts:has(i[class*="the7-login-"]),
  html body #phantom .header-bar > .mini-widgets > a.mini-contacts:has(i[class*="the7-login-"]) {
    margin-right: 10px !important;
  }
}
html body :is(#page .masthead, #phantom) :is(a.wishlist_products_counter, a.wc-ico-cart, a.mini-contacts:has(i[class*="the7-login-"])) {
  position: relative !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 1 !important;
  overflow: visible !important;
}
html body :is(#page .masthead, #phantom) a.wishlist_products_counter > .wishlist_products_counter_number,
html body :is(#page .masthead, #phantom) a.wc-ico-cart > .counter {
  position: absolute !important;
  top: calc(50% - 8px) !important;
  bottom: auto !important;
  left: calc(50% + 15px) !important;
  right: auto !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  padding: 0 3px !important;
  box-sizing: border-box !important;
  min-width: 16px !important;
  width: auto !important;
  height: 16px !important;
  min-height: 16px !important;
  border-radius: 50% !important;
  background: #89001a !important;
  color: #fff !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 10px !important;
  font-weight: 400 !important;
  font-style: normal !important;
  line-height: 16px !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  white-space: nowrap !important;
  z-index: 1;
  pointer-events: none;
}
html body :is(#page .masthead, #phantom) a.wc-ico-cart > .counter {
  left: calc(50% + 10px) !important;
}
body :is(#page .masthead, #phantom) a.wishlist_products_counter::before {
  content: "" !important;
  position: static !important;
  width: 21.1px !important;
  height: 19.1px !important;
  margin: 0 !important;
  -webkit-mask-image: url("./icons/layout-heart.svg");
  mask-image: url("./icons/layout-heart.svg");
}
body :is(#page .masthead, #phantom) a.wc-ico-cart > i {
  width: 29px !important;
  height: 27px !important;
  -webkit-mask-image: url("./icons/layout-cart.svg");
  mask-image: url("./icons/layout-cart.svg");
}
body :is(#page .masthead, #phantom) i[class*="the7-login-"] {
  width: 20.3px !important;
  height: 21.3px !important;
  -webkit-mask-image: url("./icons/layout-profile.svg");
  mask-image: url("./icons/layout-profile.svg");
}
body :is(#page .masthead, #phantom) .mini-search .search-icon > i {
  width: 21.6px !important;
  height: 19.7px !important;
  -webkit-mask-image: url("./icons/layout-search.svg");
  mask-image: url("./icons/layout-search.svg");
}
body :is(#page .masthead, #phantom) a.wc-ico-cart > i::before,
body :is(#page .masthead, #phantom) i[class*="the7-login-"]::before,
body :is(#page .masthead, #phantom) .mini-search .search-icon > i::before {
  content: none !important;
  display: none !important;
}
body :is(#page .masthead, #phantom) a.wishlist_products_counter:is(:hover, :focus-visible)::before,
body :is(#page .masthead, #phantom) a.wc-ico-cart:is(:hover, :focus-visible) > i,
body :is(#page .masthead, #phantom) a:is(:hover, :focus-visible) i[class*="the7-login-"],
body :is(#page .masthead, #phantom) .mini-search .search-icon:is(:hover, :focus-visible) > i {
  background-color: #89001a !important;
}

/* Space between desktop service icons and their accompanying text. */
@media (min-width: 1025px) {
  body :is(#page .masthead, #phantom) .text-area img:is([src$="/kostenloser-versand.svg"], [src$="/mindestbestellwert.svg"]) {
    margin-right: 8px !important;
  }
}
