body[class] #header {
  border-bottom: 0;
}

body[class] #header .header-top .search-input:focus {
  outline: none !important;
  box-shadow: none !important;
}

body[class] #header .bd-checkout-cart,
body[class] #header .bd-checkout-cart:hover {
  background-color: transparent;
  color: #fff;
}

body[class] #header .navigation-buttons .bd-header-account {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  height: 44px;
  margin: 0 8px 0 0;
  padding: 0 8px;
  border-radius: 5px;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

body[class] #header .navigation-buttons .bd-header-account::before {
  content: none;
}

body[class] #header .navigation-buttons .bd-header-account:hover {
  background-color: rgb(255 255 255 / 10%);
}

body[class] #header .navigation-buttons .bd-header-account:focus-visible {
  outline: 2px solid #a5d5cf;
  outline-offset: -3px;
}

.bd-header-account svg {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
}

body[class] #header .header-top .bd-mobile-menu {
  display: none;
}

#header .bd-checkout-cart > i {
  position: absolute;
  top: 0;
  left: 18px;
  width: 17px;
  height: 17px;
  padding: 3px;
  border-radius: 50%;
  background: var(--color-primary, #0b8577);
  color: var(--colors-foregrounds-content-inverted, #fff);
  font-size: 11px;
  font-style: normal;
  line-height: 11px;
  text-align: center;
}

@media (min-width: 992px) {
  body[class] .top-navigation-bar {
    display: none !important;
  }
}

@media (min-width: 992px) {
  body[class] #header {
    background: #0B171B;
    background-image: linear-gradient(
      to top,
      #FFFFFF 0,
      #FFFFFF 44px,
      transparent 44px,
      transparent 100%
    );
  }

  body[class] #header .header-top {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    gap: 24px;
    box-sizing: border-box;
    height: auto;
    min-height: 78px;
    padding: 12px 0;
  }

  body[class] #header .header-top > .site-name-wrapper {
    flex: 0 1 220px;
    width: auto;
    min-width: 0;
    max-width: 220px;
    margin: 0;
  }

  body[class] #header .header-top .site-name {
    margin: 0;
    line-height: 1;
  }

  body[class] #header .header-top .site-name a {
    display: flex;
    align-items: center;
    max-width: 100%;
    color: #FFFFFF;
  }

  body[class] #header .header-top .site-name a img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 52px;
  }

  body[class] #header .header-top > .search {
    flex: 1 1 700px;
    width: auto;
    min-width: 0;
    max-width: 900px;
    margin: 0 auto;
  }

  body[class] #header .header-top .search-form {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
  }

  body[class] #header .header-top .search-form fieldset {
    display: flex;
    position: relative;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
  }

  body[class] #header .header-top .search-input {
    flex: 1 1 auto;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 38px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid #FFFFFF;
    border-radius: 5px 0 0 5px;
    background: #FFFFFF;
    color: #0B171B;
    font-size: 16px;
    outline: none !important;
    box-shadow: none !important;
  }

  body[class] #header .header-top .search-input:hover,
  body[class] #header .header-top .search-input:focus,
  body[class] #header .header-top .search-input:focus-visible,
  body[class] #header .header-top .search-input:active {
    border-color: #FFFFFF !important;
    outline: none !important;
    box-shadow: none !important;
  }

  body[class] #header .header-top .search-form button[type="submit"] {
    position: relative;
    flex: 0 0 44px;
    box-sizing: border-box;
    width: 44px;
    min-width: 44px;
    height: 38px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0 5px 5px 0;
    background: #0B8577;
    color: #FFFFFF;
    font-size: 0;
    line-height: 1;
    outline: none !important;
    box-shadow: none !important;
    transition: background-color 0.2s ease;
  }

  body[class] #header .header-top .search-form button[type="submit"]:hover,
  body[class] #header .header-top .search-form button[type="submit"]:focus,
  body[class] #header .header-top .search-form button[type="submit"]:focus-visible,
  body[class] #header .header-top .search-form button[type="submit"]:active {
    background-color: #156C64;
    outline: none !important;
    box-shadow: none !important;
  }

  body[class] #header .header-top > .navigation-buttons {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    margin: 0;
    padding: 0;
    white-space: nowrap;
  }

  body[class] #header .header-top .navigation-buttons .cart-count {
    flex: 0 0 auto;
    margin: 0;
    color: #FFFFFF;
    white-space: nowrap;
  }

  body[class] #header .header-top .cart-price {
    color: inherit;
  }
}

@media (max-width: 991.98px) {
  body[class] {
    --bd-mobile-top-row: 62px;
    --bd-mobile-search-row: 56px;
    --bd-mobile-header-height: calc(var(--bd-mobile-top-row) + var(--bd-mobile-search-row));
    --bd-mobile-header-shift: 0px;
    --bd-mobile-cart-right: 56px;
    --bd-search-button-focus: #0B8577;
  }

  /* Oba řádky se při posunu stránky schovávají a vracejí společně. */
  html.scrolled-down body.ums_mobile_header_v1--on:not(
    .ordering-process, .user-action-visible, .bd-header-inquiry-open,
    :has(#header :is(.search, .bd-header-inquiry, .bd-header-account):focus-within)
  ) {
    --bd-mobile-header-shift: calc(-1 * var(--bd-mobile-header-height));
  }

  html.scrolled-down body:where(.ums_mobile_header_v1--on):not(.ordering-process):not(.search-window-visible)
    :is(.top-navigation-bar, #header .site-name, #header .cart-count) {
    transform: none;
  }

  body[class] .top-navigation-bar {
    display: block !important;
    position: fixed;
    top: var(--bd-mobile-header-shift);
    right: 0;
    left: 0;
    height: var(--bd-mobile-top-row);
    border: 0;
    background: #0B171B;
    transition: top 0.15s;
  }

  body[class] .top-navigation-bar > .container {
    width: 100%;
    max-width: none;
    height: var(--bd-mobile-top-row);
  }

  body[class] .top-navigation-bar > .container > div:not(.top-navigation-tools),
  body[class] .top-navigation-bar .top-navigation-tools > :not(.responsive-tools) {
    display: none;
  }

  body[class] .top-navigation-bar .responsive-tools {
    display: block;
    position: absolute;
    top: 0;
    right: 12px;
    width: 88px;
    height: var(--bd-mobile-top-row);
    padding: 0;
  }

  body[class] .top-navigation-bar .responsive-tools > a[data-target="search"] {
    display: none;
  }

  body[class] .top-navigation-bar .responsive-tools > a[data-target="navigation"] {
    position: absolute;
    top: 9px;
    right: 0;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    color: #FFFFFF;
  }

  body[class] .top-navigation-bar .responsive-tools > a::before {
    width: 44px;
    border-radius: 0;
    background: transparent;
    color: #FFFFFF;
    font-size: 22px;
    line-height: 44px;
  }

  body[class]:has(#header .bd-mobile-menu) .top-navigation-bar .responsive-tools {
    display: none;
  }

  body[class] #header {
    position: fixed;
    top: calc(var(--bd-mobile-top-row) + var(--bd-mobile-header-shift));
    left: 0;
    width: 100%;
    margin: 0;
    background: #0B171B;
    z-index: 56;
    transition: top 0.15s;
  }

  body[class] #header .header-top {
    display: block;
    height: auto;
    padding: 0;
  }

  body[class] #header:has(.bd-header-account) {
    --bd-mobile-account-space: 44px;
  }

  body[class] #header:has(.bd-mobile-menu) {
    --bd-mobile-cart-right: 12px;
  }

  body[class] #header .site-name {
    display: block;
    position: absolute;
    top: calc(-1 * var(--bd-mobile-top-row));
    left: 12px;
    width: calc(100% - var(--bd-mobile-cart-right) - 68px - var(--bd-mobile-account-space, 0px));
    max-width: 180px;
    height: var(--bd-mobile-top-row);
    margin: 0;
  }

  body[class] #header .site-name > a {
    display: flex;
    align-items: center;
    height: var(--bd-mobile-top-row);
  }

  body[class] #header .site-name a img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 42px;
    margin: 0;
    padding: 0;
  }

  body[class] #header .navigation-buttons {
    padding: 0;
  }

  body[class] #header .navigation-buttons .bd-header-account {
    position: absolute;
    top: calc(9px - var(--bd-mobile-top-row));
    right: calc(var(--bd-mobile-cart-right) + 44px);
    width: 44px;
    margin: 0;
    padding: 0;
  }

  .bd-header-account > span {
    display: none;
  }

  body[class] #header .cart-count {
    display: flex;
    position: absolute;
    top: calc(9px - var(--bd-mobile-top-row));
    right: var(--bd-mobile-cart-right);
    left: auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #FFFFFF;
    transition: none;
  }

  body[class] #header .cart-count::before {
    margin: 0;
    color: #FFFFFF;
    font-size: 26px;
    line-height: 1;
  }

  body[class] #header .cart-price {
    display: none;
  }

  #header .bd-checkout-cart > i {
    background: var(--_color-header-mobile-contrast-bg, #fff);
    color: var(--_color-header-mobile-contrast-text, #0b171b);
  }

  body[class] #header .header-top > .search {
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
    height: var(--bd-mobile-search-row);
    margin: 0;
    padding: 0 0 10px;
  }

  body[class] #header .header-top .search-form {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    margin: 0;
  }

  body[class] #header .header-top .bd-mobile-menu {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 46px;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
  }

  body[class] #header .header-top .bd-mobile-menu::before {
    content: "";
    width: 22px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 -6px currentColor, 0 6px currentColor;
  }

  body[class] #header .header-top .bd-mobile-menu:focus-visible {
    outline: 2px solid #a5d5cf;
    outline-offset: -3px;
  }

  body[class] #header .header-top .search-form fieldset {
    display: flex;
    position: relative;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: #FFFFFF;
  }

  body[class] #header .header-top .search-input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 46px;
    margin: 0;
    padding: 0 14px;
    border: 0;
    border-radius: 6px 0 0 6px;
    background: #FFFFFF;
    color: #0B171B;
    font-size: 16px;
  }

  body[class] #header .header-top .search-form button[type="submit"] {
    position: relative;
    flex: 0 0 46px;
    width: 46px;
    min-width: 46px;
    height: 46px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0 6px 6px 0;
    background: #FFFFFF;
    color: #0B171B;
    font-size: 0;
    box-shadow: none;
  }

  body[class] > .overall-wrapper {
    padding-top: var(--bd-mobile-header-height);
  }

  @media (prefers-reduced-motion: reduce) {
    body[class] .top-navigation-bar,
    body[class] #header {
      transition: none;
    }
  }
}

body[class] #header .header-top .search-form button[type="submit"]::before {
  content: "";
  position: absolute;
  box-sizing: border-box;
  top: calc(50% - 11px);
  left: calc(50% - 10px);
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: none;
}

body[class] #header .header-top .search-form button[type="submit"]::after {
  content: "";
  position: absolute;
  top: calc(50% + 3px);
  left: calc(50% + 3px);
  width: 8px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}

body[class] #header .header-top .search-form button[type="submit"]:focus-visible {
  outline: 2px solid var(--bd-search-button-focus, #A5D5CF) !important;
  outline-offset: -4px;
}

