/* Website V146.3 — Clean Desktop Header & Equal Page Tabs */
.rm-desktop-header-search,
.rm-desktop-page-tabs {
  display: none;
}

.rm-desktop-header-search .rm-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (min-width: 1024px) {
  .top {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows: 92px 54px;
    grid-template-areas:
      "search brand basket"
      "tabs tabs tabs";
    align-items: center;
    width: 100%;
    height: 146px !important;
    min-height: 146px !important;
    max-height: 146px !important;
    padding: 0 !important;
    overflow: visible !important;
    border-bottom: 0 !important;
    background: var(--cream) !important;
    box-shadow: 0 8px 24px rgba(7, 30, 61, 0.08);
  }

  .top > .hamb,
  .top > .desktop-nav {
    display: none !important;
  }

  .top > .rm-header-brand {
    position: relative;
    z-index: 2;
    grid-area: brand;
    align-self: center;
    justify-self: center;
    display: grid;
    place-items: center;
    height: 92px;
    padding: 7px 20px;
  }

  .top > .rm-header-brand .logo {
    width: clamp(190px, 15vw, 226px) !important;
    max-height: 76px !important;
    object-fit: contain;
  }

  .rm-desktop-header-search {
    position: relative;
    grid-area: search;
    justify-self: start;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 40px;
    align-items: center;
    width: min(360px, calc(100% - 56px));
    height: 48px;
    margin-left: clamp(28px, 5vw, 78px);
    overflow: hidden;
    border: 1.5px solid rgba(7, 30, 61, 0.58);
    border-radius: 999px;
    background: var(--white);
    box-shadow: 0 3px 0 rgba(7, 30, 61, 0.1);
    transition:
      border-color 180ms ease,
      box-shadow 180ms ease,
      transform 180ms ease;
  }

  .rm-desktop-header-search:hover {
    border-color: var(--navy);
    box-shadow: 0 5px 0 rgba(7, 30, 61, 0.13);
    transform: translateY(-1px);
  }

  .rm-desktop-header-search:focus-within {
    border-color: var(--navy);
    box-shadow: 0 0 0 4px rgba(246, 141, 168, 0.34);
    transform: none;
  }

  .rm-desktop-header-search > svg {
    width: 19px;
    height: 19px;
    margin-left: 15px;
    fill: none;
    stroke: var(--navy);
    stroke-width: 2;
  }

  .rm-desktop-header-search input {
    min-width: 0;
    height: 100%;
    padding: 0 9px 0 12px;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
  }

  .rm-desktop-header-search input::placeholder {
    color: rgba(7, 30, 61, 0.57);
    opacity: 1;
  }

  .rm-desktop-header-search button {
    display: grid;
    place-items: center;
    align-self: stretch;
    width: 40px;
    padding: 0;
    border: 0;
    border-left: 1px solid rgba(7, 30, 61, 0.14);
    background: transparent;
    color: var(--navy);
    cursor: pointer;
    transition:
      color 180ms ease,
      background 180ms ease;
  }

  .rm-desktop-header-search button:hover,
  .rm-desktop-header-search button:focus-visible {
    background: var(--pink);
    color: var(--navy);
  }

  .rm-desktop-header-search button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
  }

  .top > .top-basket {
    position: relative !important;
    right: auto !important;
    grid-area: basket;
    justify-self: end;
    display: grid !important;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-right: clamp(28px, 5vw, 78px);
    border: 1.5px solid rgba(7, 30, 61, 0.58);
    border-radius: 50%;
    background: var(--white);
    color: var(--navy);
    box-shadow: 0 3px 0 rgba(7, 30, 61, 0.1);
    cursor: pointer;
    transition:
      border-color 180ms ease,
      background 180ms ease,
      box-shadow 180ms ease,
      transform 180ms ease;
  }

  .top > .top-basket:hover,
  .top > .top-basket:focus-visible {
    border-color: var(--navy);
    background: var(--pink);
    box-shadow: 0 5px 0 rgba(7, 30, 61, 0.16);
    transform: translateY(-2px);
  }

  .top > .top-basket:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
  }

  .top > .top-basket .basket-svg {
    width: 29px;
    height: 29px;
    color: var(--navy);
  }

  .top > .top-basket .badge {
    right: -7px;
    top: -6px;
    border-color: var(--cream);
  }

  .rm-desktop-page-tabs {
    position: relative;
    z-index: 1;
    grid-area: tabs;
    align-self: stretch;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    border-top: 1px solid rgba(255, 248, 235, 0.16);
    border-bottom: 2px solid var(--navy);
    background: var(--navy);
  }

  .rm-desktop-page-tabs a {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    padding: 0 18px;
    border-right: 1px solid rgba(255, 248, 235, 0.15);
    color: var(--cream);
    font-family: var(--font-brand);
    font-size: clamp(12px, 0.88vw, 14px);
    font-weight: 800;
    letter-spacing: 0.055em;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    transition:
      color 190ms ease,
      background 190ms ease,
      letter-spacing 190ms ease;
  }

  .rm-desktop-page-tabs a:last-child {
    border-right: 0;
  }

  .rm-desktop-page-tabs a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 4px;
    border-radius: 4px 4px 0 0;
    background: var(--yellow);
    transform: translateX(-50%);
    transition: width 210ms cubic-bezier(0.22, 0.8, 0.3, 1);
  }

  .rm-desktop-page-tabs a:hover,
  .rm-desktop-page-tabs a:focus-visible {
    background: var(--cream);
    color: var(--navy);
    letter-spacing: 0.075em;
  }

  .rm-desktop-page-tabs a:hover::after,
  .rm-desktop-page-tabs a:focus-visible::after {
    width: 68%;
  }

  .rm-desktop-page-tabs a:focus-visible {
    z-index: 2;
    outline: 3px solid var(--yellow);
    outline-offset: -4px;
  }

  .rm-desktop-page-tabs a[aria-current="page"] {
    background: var(--pink);
    color: var(--navy);
  }

  .rm-desktop-page-tabs a[aria-current="page"]::after {
    width: 100%;
    background: var(--yellow);
  }

  .desktop-shop-filter-v127,
  .desktop-shop-filter-v141,
  .commission-inspiration {
    top: 166px !important;
  }

  .pdp-media,
  .product-summary,
  .rm-checkout-side {
    top: 160px !important;
  }

  [id] {
    scroll-margin-top: 166px;
  }
}

@media (min-width: 1024px) and (max-width: 1120px) {
  .rm-desktop-header-search {
    width: calc(100% - 44px);
    margin-left: 22px;
  }

  .top > .top-basket {
    margin-right: 22px;
  }

  .rm-desktop-page-tabs a {
    padding-right: 10px;
    padding-left: 10px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rm-desktop-header-search,
  .rm-desktop-header-search button,
  .top > .top-basket,
  .rm-desktop-page-tabs a,
  .rm-desktop-page-tabs a::after {
    transition: none !important;
  }
}
