/* One compact desktop header band; original controls and basket keep their owners. */
@media (min-width: 1367px) {
  body[data-layout="desktop"][data-desktop-basket="true"] {
    --desktop-toolbar-height: 56px;
    --desktop-basket-edge: 356px; /* Existing 340px basket plus 16px right gutter. */
    padding-top: var(--desktop-toolbar-height) !important;
  }

  html body[data-layout="desktop"][data-desktop-basket="true"] #navbar-container {
    width: calc(100% - var(--desktop-basket-edge)) !important;
    right: var(--desktop-basket-edge) !important;
    height: var(--desktop-toolbar-height);
    min-height: 0;
    background: var(--site-surface, #fff) !important;
    border: 0;
    border-bottom: 1px solid var(--site-line, #e4e5dd) !important;
    border-image: none;
    box-shadow: none;
  }
  body[data-layout="desktop"][data-desktop-basket="true"] #navbar {
    height: 100%;
    min-height: 0;
  }
  html body[data-layout="desktop"][data-desktop-basket="true"] #homeBtn {
    top: 0;
    height: 100%;
    /* Compensate for the 14px band extension; retain the menu content alignment. */
    left: max(40px, calc((100% - 1174px) / 2));
  }
  html body[data-layout="desktop"][data-desktop-basket="true"] #desktopNavMenu {
    top: 0;
    height: calc(var(--desktop-toolbar-height) - 1px);
    left: calc(var(--desktop-toolbar-left) + 76px) !important;
    right: calc(var(--desktop-basket-edge) + 148px) !important;
    align-items: center;
    overflow: visible;
    background: transparent !important;
  }
  body[data-layout="desktop"][data-desktop-basket="true"] #desktopNavMenu > button,
  body[data-layout="desktop"][data-desktop-basket="true"] #desktopNavInfo > button {
    height: 44px;
    line-height: 20px;
  }
  /* A block flex wrapper avoids the inline button's baseline descender gap. */
  body[data-layout="desktop"][data-desktop-basket="true"] #desktopNavInfo {
    display: flex;
    align-items: center;
    height: 44px;
  }
  body[data-layout="desktop"][data-desktop-basket="true"] #desktopNavMenu #desktopNavCustomerButton,
  body[data-layout="desktop"][data-desktop-basket="true"] #desktopNavMenu #desktopNavCustomerGuest {
    flex: 0 1 auto;
    min-width: 0;
  }

  html[data-nova-public][data-theme-ready] body[data-layout="desktop"][data-desktop-basket="true"] #delivery-options > .order-method-header > .site-theme-toggle {
    top: calc((var(--desktop-toolbar-height) - 1px - 44px) / 2);
    right: calc(var(--desktop-basket-edge) + 88px);
  }
  body[data-layout="desktop"][data-desktop-basket="true"] #delivery-options > .order-method-header .delivery-lang-switch {
    top: calc((var(--desktop-toolbar-height) - 1px - 44px) / 2);
    right: calc(var(--desktop-basket-edge) + 24px);
    height: 44px;
  }
  body[data-layout="desktop"][data-desktop-basket="true"] #delivery-options > .order-method-header .delivery-lang-switch .lang-trigger {
    height: 44px;
  }
  /* Keep the underline decorative so it cannot lift NL/EN above the logo center. */
  body[data-layout="desktop"][data-desktop-basket="true"] #delivery-options > .order-method-header .delivery-lang-switch .lang-trigger::after {
    padding-bottom: 0;
    border-bottom: 0;
    line-height: 20px;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
  }

  body[data-layout="desktop"][data-desktop-basket="true"] #desktopMenuCartMount {
    border: 0;
    border-left: 1px solid var(--site-line, #e4e5dd);
    box-shadow: none;
  }
  body[data-layout="desktop"][data-desktop-basket="true"] #desktopMenuCartMount > #mobileCart > .touch-cart-header {
    box-sizing: border-box;
    height: var(--desktop-toolbar-height);
    min-height: var(--desktop-toolbar-height);
    flex: 0 0 var(--desktop-toolbar-height);
    align-items: center;
    padding: 0 18px;
    background: var(--site-surface, #fff);
    border-bottom: 1px solid var(--site-line, #e4e5dd);
  }
  body[data-layout="desktop"][data-desktop-basket="true"] #desktopMenuCartMount .checkout-top-navbar {
    padding-top: 12px;
  }
}
