/* KupKov.cz logo layout — Classic, mobile header v1 */
@media (max-width: 767px) {
  body.ums_mobile_header_v1--on:not(.ordering-process) #header .header-top {
    min-height: 73px;
  }

  body.ums_mobile_header_v1--on:not(.ordering-process) #header .site-name-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 73px;
  }

  body.ums_mobile_header_v1--on:not(.ordering-process) #header .site-name {
    position: static;
    width: 100%;
    height: 73px;
    text-align: center;
  }

  body.ums_mobile_header_v1--on:not(.ordering-process) #header .site-name > a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 73px;
  }

  body.ums_mobile_header_v1--on:not(.ordering-process) #header .site-name img {
    display: block;
    width: 246px;
    max-width: calc(100vw - 40px);
    height: auto;
    max-height: 65px;
    margin: 0 auto;
    padding: 0;
  }

  body.ums_mobile_header_v1--on:not(.ordering-process).type-index .overall-wrapper {
    padding-top: 123px;
  }

  body.ums_mobile_header_v1--on:not(.ordering-process):not(.type-index) .overall-wrapper {
    padding-top: 143px;
  }

  html.scrolled-down body.ums_mobile_header_v1--on:not(.ordering-process):not(.search-window-visible) .top-navigation-bar {
    z-index: 57;
    transform: none !important;
  }

  html.scrolled-down body.ums_mobile_header_v1--on:not(.ordering-process):not(.search-window-visible) #header {
    pointer-events: none;
    background: transparent;
  }

  html.scrolled-down body.ums_mobile_header_v1--on:not(.ordering-process):not(.search-window-visible) #header .navigation-wrapper,
  html.scrolled-down body.ums_mobile_header_v1--on:not(.ordering-process):not(.search-window-visible) #header .header-top,
  html.scrolled-down body.ums_mobile_header_v1--on:not(.ordering-process):not(.search-window-visible) #header .site-name-wrapper {
    background: transparent;
  }

  html.scrolled-down body.ums_mobile_header_v1--on:not(.ordering-process):not(.search-window-visible) #header .cart-count {
    pointer-events: auto;
    transform: none !important;
  }

  /* Keep the mobile cart below the 50 px tool row and 73 px custom logo row. */
  body.ums_mobile_header_v1--on:not(.ordering-process) .popup-widget.cart-widget {
    padding-top: 123px;
  }

  /* Give the product identity and manufacturing notes the flexible mobile width. */
  body.ums_mobile_header_v1--on:not(.ordering-process) .popup-widget.cart-widget .cart-widget-product {
    display: grid;
    grid-template-columns: 76px 70px 40px minmax(0, 1fr) 24px;
    align-items: center;
  }

  body.ums_mobile_header_v1--on:not(.ordering-process) .popup-widget.cart-widget .cart-widget-product > div {
    display: block;
    height: auto;
  }

  body.ums_mobile_header_v1--on:not(.ordering-process) .popup-widget.cart-widget .cart-widget-product-image {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
  }

  body.ums_mobile_header_v1--on:not(.ordering-process) .popup-widget.cart-widget .cart-widget-product-name {
    grid-column: 2 / -1;
    grid-row: 1;
    width: auto;
    min-width: 0;
  }

  body.ums_mobile_header_v1--on:not(.ordering-process) .popup-widget.cart-widget .cart-widget-product-amount {
    grid-column: 2;
    grid-row: 2;
  }

  body.ums_mobile_header_v1--on:not(.ordering-process) .popup-widget.cart-widget .cart-widget-product-unit {
    grid-column: 3;
    grid-row: 2;
  }

  body.ums_mobile_header_v1--on:not(.ordering-process) .popup-widget.cart-widget .cart-widget-product-delete {
    grid-column: 5;
    grid-row: 2;
  }

  body.ums_mobile_header_v1--on:not(.ordering-process) .popup-widget.cart-widget .cart-widget-product-name > .wt-cut-cart-lock-message {
    display: block;
    margin-top: 6px;
  }

  /* Once the logo row is scrolled away, preserve Shoptet's native 50 px inset. */
  html.scrolled-down body.ums_mobile_header_v1--on:not(.ordering-process):not(.search-window-visible) .popup-widget.cart-widget {
    padding-top: 50px;
  }
}
