@media (max-width: 880px) {
  html body header .ds-mobile-actions-with-profile,
  .ds-history-nav {
    --action-size: 44px;
    --action-step: 47px;
    --header-edge: 10px;
    --utility-border: #e6ded1;
    --utility-background: #fbf8f2;
  }

  html body header .ds-mobile-actions-with-profile #resmenu,
  html body header .ds-mobile-actions-with-profile #ds-mobile-search-button,
  html body header .ds-mobile-actions-with-profile #ds-mobile-my-purchases,
  .ds-history-nav a.ds-history-mobile {
    background: var(--utility-background) !important;
    color: #28241d !important;
    border: 1px solid var(--utility-border) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
  }

  html body header .ds-mobile-actions-with-profile #resbasket,
  .ds-history-nav #ds-history-basket {
    border-radius: 8px;
  }

  html body header .ds-mobile-actions-with-profile #resmenu {
    left: 0 !important;
    right: auto !important;
  }

  html body header .ds-mobile-actions-with-profile #ds-mobile-search-button {
    left: var(--action-step) !important;
    right: auto !important;
  }

  html body header .ds-mobile-actions-with-profile #ds-mobile-my-purchases { right: var(--action-step) !important; }

  html body header .ds-mobile-actions-with-profile .WebShopSkinLogo {
    left: 50% !important;
    width: min(220px, calc(100% - 194px)) !important;
    translate: -50% 0;
  }

  .ds-history-nav { position: relative; justify-content: center; }
  .ds-history-nav .ds-history-logo { width: min(220px, calc(100% - 194px)); }
  .ds-history-nav .ds-history-actions { display: contents; }
  .ds-history-nav :is(.ds-history-actions a, a.ds-history-mobile) {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    box-sizing: border-box;
    width: var(--action-size);
    height: var(--action-size);
  }
  .ds-history-nav #ds-history-menu-toggle { left: var(--header-edge); }
  .ds-history-nav #ds-history-search-toggle { left: calc(var(--header-edge) + var(--action-step)); }
  .ds-history-nav .ds-history-actions a[aria-label="Mine køb"] { right: calc(var(--header-edge) + var(--action-step)); }
  .ds-history-nav #ds-history-basket { right: var(--header-edge); }
}

@media (max-width: 880px) {
  html body header .ds-mobile-actions-with-profile,
  .ds-history-nav {
    --action-step: 44px;
    --header-edge: 4px;
    --utility-border: transparent;
    --utility-background: transparent;
  }

  html body header .ds-mobile-actions-with-profile {
    width: calc(100% - 8px) !important;
    max-width: none !important;
  }

  html body header .ds-mobile-actions-with-profile .WebShopSkinLogo {
    width: min(240px, calc(100% - 184px)) !important;
  }

  .ds-history-nav { padding-inline: var(--header-edge); }
  .ds-history-nav .ds-history-logo { width: min(240px, calc(100% - 184px)); }

  html body header .ds-mobile-actions-with-profile #resbasket > span,
  .ds-history-nav #ds-history-cart-count {
    right: -1px !important;
  }
}

@media (max-width: 880px) {
  .ds-history-nav > a.ds-history-mobile {
    display: grid;
    place-items: center;
    text-decoration: none;
  }
  .ds-history-nav > a.ds-history-mobile svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  html body header .ds-mobile-actions-with-profile :focus-visible,
  .ds-history-nav :focus-visible {
    outline: 2px solid #795500;
    outline-offset: -3px;
  }
}
