/* 2 Wheels Only – Hyper-style header, adapted from the Paul's Cycles build.
   This site runs a newer masthead template than Paul's: one row (logo | nav | icons), with search,
   login and basket as panels in a sibling `.menuOptions` row. The desktop grid is therefore built on
   the shared parent `.container > .col-1`, with `display: contents` on the wrappers. No DOM moves. */

:root {
    --plc-brand: #d63123;
    --plc-topbar-bg: #111111;
    --plc-topbar-text: #ffffff;
    --plc-header-bg: #ffffff;
    --plc-ink: #111111;
    --plc-muted: #6b6b6b;
    --plc-pill-bg: #eeeeee;
    --plc-pill-hover: #e2e2e2;
    --plc-line: #e6e6e6;
    --plc-panel-bg: #f4f4f4;
    --plc-sale: #d63123;
    --plc-gutter: 24px;
    /* The platform caps the masthead content at 1920px; the top bar and mega menus line up with it. */
    --plc-content-max: 1920px;
    --plc-inset: max(var(--plc-gutter), calc((100% - var(--plc-content-max)) / 2 + var(--plc-gutter)));
    --plc-search-max: 680px;
    --plc-search-line: #9a9a9a;
    --plc-header-h: 103px;
    --plc-topbar-h: 38px;
    /* The logo is a wide wordmark (about 6:1). Its width scales with the screen, between these
       limits, and its height follows from its shape. */
    --plc-logo-ratio: 3000 / 490;
    --plc-logo-w: clamp(180px, 13vw, 240px);
}

/* The CMS sub-banner collection feeds the message ticker, so the original strip and the old call to
   action bar are hidden here rather than by the JS, before the page first paints. */
[id$="_BannerCollectionDisplaySubBanner_bannerCollectionPanel"],
.wrapper:not(.masthead):has(.hmCalltoActions),
.plc-cta-moved {
    display: none !important;
}

/* The ticker is built by the JS, which runs after the page has started to draw. Its space (and its
   dark background) is reserved from the first paint whenever the banner collection has a banner, and
   the ticker is laid into that space, so nothing below it moves when it arrives. */
form:has(> .wrapper.masthead):has([id$="_BannerCollectionDisplaySubBanner_bannerCollectionPanel"] a.Banner) {
    position: relative;
    padding-top: var(--plc-topbar-h) !important;
}

form:has(> .wrapper.masthead):has([id$="_BannerCollectionDisplaySubBanner_bannerCollectionPanel"] a.Banner)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--plc-topbar-h);
    background: var(--plc-topbar-bg);
}

.plc-topbar,
.plc-store,
.plc-account-label,
.plc-chevron {
    display: none;
}

/* Message ticker: one continuous strip of messages, separated by red dots, scrolling right to left */
.plc-topbar {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    height: var(--plc-topbar-h);
    background: var(--plc-topbar-bg);
    color: var(--plc-topbar-text);
    font-size: 12px;
    line-height: 1;
}

.plc-ticker {
    display: flex;
    height: var(--plc-topbar-h);
    overflow: hidden;
    /* Sideways swipes move the ticker; up and down still scroll the page */
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

/* Moved by the JS: it scrolls on its own, pauses on hover, and steps or follows a swipe. */
.plc-ticker__track {
    display: flex;
    flex: none;
    align-items: center;
    will-change: transform;
}

.plc-ticker__group {
    display: flex;
    flex: none;
    align-items: center;
}

.plc-ticker__item {
    color: inherit;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
    /* The platform capitalises every word in links */
    text-transform: uppercase !important;
    white-space: nowrap;
    -webkit-user-drag: none;
}

.plc-ticker__item:hover {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.plc-ticker__dot {
    flex: none;
    width: 6px;
    height: 6px;
    margin: 0 32px;
    border-radius: 50%;
    background: var(--plc-brand);
}

/* Previous and next arrows at each end of the bar. They fade in on hover with a mouse and are
   always shown on touch screens. */
/* The platform's own button styles (block display, a fixed 47px height and line height) are
   overridden so the arrow stays centred in the bar. */
.plc-ticker__arrow,
.plc-ticker__arrow:hover,
.plc-ticker__arrow:focus {
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    z-index: 2;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    line-height: 1 !important;
    font-size: 0 !important;
    text-indent: 0 !important;
    color: var(--plc-topbar-text) !important;
}

.plc-ticker__arrow {
    width: 56px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.plc-ticker__arrow--prev,
.plc-ticker__arrow--prev:hover,
.plc-ticker__arrow--prev:focus {
    left: 0 !important;
    right: auto !important;
    background: linear-gradient(to right, var(--plc-topbar-bg) 55%, transparent) !important;
}

.plc-ticker__arrow--next,
.plc-ticker__arrow--next:hover,
.plc-ticker__arrow--next:focus {
    right: 0 !important;
    left: auto !important;
    background: linear-gradient(to left, var(--plc-topbar-bg) 55%, transparent) !important;
}

/* The chevron: two sides of a small square, turned. It must be a block, or the platform's inline
   pseudo-element style flattens it to a line. */
.plc-ticker__arrow::before {
    content: "" !important;
    display: block !important;
    position: static !important;
    flex: none;
    box-sizing: content-box !important;
    margin: 0 !important;
    background: none !important;
    width: 7px;
    height: 7px;
    border: solid currentColor !important;
    border-width: 0 1.5px 1.5px 0 !important;
    transform: rotate(135deg);
    transition: transform 0.2s;
}

.plc-ticker__arrow--next::before {
    transform: rotate(-45deg);
}

.plc-ticker__arrow--prev:hover::before {
    transform: translateX(-2px) rotate(135deg);
}

.plc-ticker__arrow--next:hover::before {
    transform: translateX(2px) rotate(-45deg);
}

.plc-topbar:hover .plc-ticker__arrow,
.plc-ticker__arrow:focus-visible {
    opacity: 1;
}

.plc-ticker__arrow:focus-visible {
    outline: 1px solid var(--plc-topbar-text);
    outline-offset: -4px;
}

/* Nothing from the platform drawn after the arrow */
.plc-ticker__arrow::after {
    content: none !important;
}

@media (hover: none) {
    .plc-ticker__arrow {
        width: 40px;
        opacity: 1;
    }
}

.wrapper.masthead,
.wrapper.masthead .grid.fixed,
.wrapper.masthead .container {
    background: var(--plc-header-bg);
}

@media screen and (min-width: 1025px) {
    .masthead .container {
        padding: 0;
        max-width: none;
    }

    .masthead .container > .col-1 {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto auto auto;
        grid-template-rows: 64px 48px;
        align-items: center;
        column-gap: 24px;
        row-gap: 0;
        position: static;
        padding: 0 var(--plc-gutter);
        background: var(--plc-header-bg);
    }

    .masthead .navIcons,
    .masthead .menu-icons-header,
    .masthead .menuOptions {
        display: contents;
    }

    .masthead .navIcons > .logoContainer {
        grid-column: 1;
        grid-row: 1;
        display: flex;
        align-items: center;
        width: auto;
        height: 64px;
        margin: 0;
        padding: 0;
    }

    .masthead .navIcons .logo {
        display: block;
        margin: 0;
        width: var(--plc-logo-w);
        height: auto;
        aspect-ratio: var(--plc-logo-ratio);
        background-size: contain;
        background-position: left center;
        background-repeat: no-repeat;
    }

    /* The search trigger and burger only open panels that are now always visible or mobile-only. */
    .masthead .menu-icons-header > .icon-menu,
    .masthead .menu-icons-header > .icon-search {
        display: none !important;
    }

    .masthead .menuOptions > .srchCtr {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        display: block !important;
        width: 100%;
        max-width: var(--plc-search-max);
        height: auto;
        margin: 0;
        padding: 0;
        position: relative;
        background: transparent;
        box-shadow: none;
        line-height: normal;
    }

    /* The platform restyles the search box when it is focused or its panel is open (`.tbcntOpen`,
       `.focus-within`), which shifted the text. The pill and input are fixed in every state, and the
       input spans the whole pill so the predictive search dropdown lines up with its edges. */
    .masthead .srchCtr > div,
    .masthead .srchCtr.tbcntOpen > div,
    .masthead .srchCtr.focus-within > div {
        display: block !important;
        width: 100% !important;
        height: 48px !important;
        margin: 0 !important;
        padding: 0 !important;
        background: var(--plc-header-bg);
        border: 1px solid var(--plc-search-line) !important;
        border-radius: 999px;
        box-sizing: border-box;
        position: relative;
        transition: border-color 0.2s;
    }

    .masthead .srchCtr > div:hover,
    .masthead .srchCtr > div:focus-within {
        border-color: var(--plc-ink) !important;
    }

    .masthead .srchCtr .searchBoxForm,
    .masthead .srchCtr .searchBoxForm:focus,
    .masthead .srchCtr .searchBoxForm:focus-visible,
    .masthead .srchCtr.tbcntOpen .searchBoxForm,
    .masthead .srchCtr.focus-within .searchBoxForm {
        position: static !important;
        display: block !important;
        width: 100% !important;
        height: 46px !important;
        min-width: 0;
        margin: 0 !important;
        padding: 0 56px 0 22px !important;
        text-indent: 0 !important;
        border: 0 !important;
        border-radius: 999px;
        background: transparent !important;
        font-family: inherit;
        font-size: 15px;
        font-weight: 500;
        line-height: 46px;
        color: var(--plc-ink);
        box-shadow: none !important;
        outline: none;
        transform: none !important;
        transition: none !important;
    }

    .masthead .srchCtr .searchBoxForm::placeholder {
        color: #4a4744;
        font-weight: 500;
    }

    .masthead .srchCtr .icon-search {
        position: absolute !important;
        top: 4px !important;
        right: 4px !important;
        left: auto !important;
        width: 38px;
        height: 38px;
        line-height: 38px;
        font-size: 16px;
        text-align: center;
        color: #ffffff;
        background: var(--plc-ink);
        border-radius: 50%;
        cursor: pointer;
        transform: none;
    }

    .masthead .srchCtr .icon-search:hover {
        background: var(--plc-brand);
    }

    /* Login and basket open as matching white panels under the header, lined up with its right edge
       below the account and basket icons. */
    .masthead .menuOptions > .loginCtr,
    .masthead .menuOptions > .basketCtr {
        position: absolute !important;
        top: 100% !important;
        left: auto !important;
        right: var(--plc-inset) !important;
        z-index: 5;
        width: 416px !important;
        max-width: calc(100vw - 2 * var(--plc-gutter)) !important;
        box-sizing: border-box;
        background: var(--plc-header-bg) !important;
        color: var(--plc-ink);
        border: 1px solid var(--plc-line);
        border-top: 0;
        box-shadow: 0 16px 24px rgba(0, 0, 0, 0.08);
        text-align: left;
    }

    .masthead .menuOptions > .loginCtr * {
        text-align: left;
    }

    .masthead .navIcons .plc-store {
        grid-column: 3;
        grid-row: 1;
    }

    .masthead .navIcons .plc-store,
    .masthead .navIcons .icon-head {
        display: flex;
        align-items: center;
        gap: 8px;
        width: auto;
        height: auto;
        margin: 0;
        line-height: 1;
        font-size: 14px;
        font-weight: 500;
        text-transform: none;
        color: var(--plc-ink);
        background: transparent;
        text-decoration: none;
        white-space: nowrap;
        cursor: pointer;
    }

    .masthead .navIcons .icon-head {
        grid-column: 4;
        grid-row: 1;
        position: relative;
    }

    .plc-store::before {
        content: "";
        width: 20px;
        height: 20px;
        background: currentColor;
        -webkit-mask: url("https://api.iconify.design/solar/map-point-linear.svg") center / contain no-repeat;
        mask: url("https://api.iconify.design/solar/map-point-linear.svg") center / contain no-repeat;
    }

    .masthead .navIcons .icon-head::before {
        font-size: 18px;
    }

    .plc-account-label {
        display: inline;
        font-family: proxima-nova, sans-serif;
    }

    .masthead .navIcons .plc-store:hover,
    .masthead .navIcons .icon-head:hover {
        color: var(--plc-sale);
    }

    .masthead .navIcons .menu-icons-header .icon-bag {
        grid-column: 5;
        grid-row: 1;
        position: relative;
        width: 46px;
        min-width: 46px;
        max-width: 46px;
        height: 46px;
        margin: 0;
        line-height: 46px;
        font-size: 18px;
        text-align: center;
        color: var(--plc-ink);
        border-radius: 50%;
        background: var(--plc-pill-bg);
        transition: background 0.2s ease;
        cursor: pointer;
    }

    .masthead .navIcons .icon-bag:hover {
        background: var(--plc-pill-hover);
    }

    .masthead .navIcons .icon-bag .basketPip {
        top: -2px;
        right: -2px;
        background: var(--plc-brand);
        color: #ffffff;
    }

    .masthead .navIcons > .ctrNavigation {
        grid-column: 1 / -1;
        grid-row: 2;
        align-self: stretch;
        display: flex;
        align-items: stretch;
        width: auto;
        height: auto;
        margin: 0;
        padding: 2px 0 8px;
        background: transparent;
        border-top: 1px solid var(--plc-line);
    }

    .masthead .ctrNavigation > .CSSFacetNavModules {
        display: flex;
        justify-content: flex-start;
        align-items: stretch;
        gap: 32px;
        width: 100%;
        height: auto;
        margin: 0;
    }

    .masthead .NodeLevel0 {
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0;
        background: transparent;
    }

    .masthead .NodeLevel0 > a {
        display: flex;
        align-items: center;
        gap: 6px;
        font-family: proxima-nova, sans-serif;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 0;
        text-transform: none;
        padding: 4px 0 !important;
        color: var(--plc-ink);
        background: linear-gradient(currentColor, currentColor) left bottom / 0% 1px no-repeat !important;
        transition: background-size 0.5s cubic-bezier(0.3, 1, 0.3, 1), color 0.2s;
    }

    .masthead .NodeLevel0 > a:hover,
    .masthead .NodeLevel0 > a.active {
        background-size: 100% 1px !important;
    }

    .masthead .NodeLevel0:not(.plc-nav-sale) > a.active {
        color: var(--plc-ink) !important;
    }

    .masthead .NodeLevel0 > a::before,
    .masthead .NodeLevel0 > a::after {
        display: none;
    }

    .plc-chevron {
        display: block;
        width: 10px;
        height: 10px;
        background: currentColor;
        -webkit-mask: url("https://api.iconify.design/solar/alt-arrow-down-linear.svg") center / contain no-repeat;
        mask: url("https://api.iconify.design/solar/alt-arrow-down-linear.svg") center / contain no-repeat;
        transition: transform 0.2s ease;
    }

    /* Mega menus open on click here (the platform adds `.active`), not on hover. */
    .masthead .NodeLevel0:has(> .CSSFacetNavModules.active) .plc-chevron {
        transform: rotate(180deg);
    }

    .masthead .NodeLevel0.plc-nav-sale > a {
        color: var(--plc-sale);
    }


    /* The platform shows an open mega menu as `position: fixed; top: 75px`. Hang it off the grid
       container instead so it sits under the nav row whether the header is in flow or pinned. */
    .masthead .NodeLevel0 {
        position: static;
    }

    /* Anchored to `.wrapper.masthead` (the grid container is left static) so it runs edge to edge.
       Second-tier groups share the width equally, divided by thin rules, with the text lined up to
       the logo. */
    .masthead .NodeLevel0 > .CSSFacetNavModules {
        position: absolute !important;
        /* Below the masthead's bottom rule, which then doubles as the panel's top edge */
        top: calc(100% + 1px) !important;
        left: 0 !important;
        right: 0 !important;
        width: auto !important;
        overflow-y: auto;
        max-height: calc(100vh - var(--plc-header-h));
        margin: 0 !important;
        padding: 0 var(--plc-inset) !important;
        box-sizing: border-box;
        background: var(--plc-header-bg) !important;
        color: var(--plc-ink);
        border-top: 0 !important;
        box-shadow: 0 16px 24px rgba(0, 0, 0, 0.06);
    }

    .masthead .NodeLevel0 > .CSSFacetNavModules.active {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: stretch;
        gap: 0 !important;
    }

    .masthead .NodeLevel0 .NodeLevel1 {
        flex: 1 1 0 !important;
        min-width: 0;
        max-width: none !important;
        float: none !important;
        margin: 0 !important;
        padding: 32px 32px 40px !important;
        box-sizing: border-box;
        background: transparent !important;
        border: 0 !important;
        border-left: 1px solid var(--plc-line) !important;
        border-radius: 0 !important;
    }

    .masthead .NodeLevel0 .NodeLevel1:first-child {
        border-left: 0 !important;
        padding-left: 0 !important;
    }

    .masthead .NodeLevel0 .NodeLevel1:last-child {
        padding-right: 0 !important;
    }

    /* Menu adverts (photo cards from the CMS) keep the platform's place at the start of the row,
       at a fixed width, and the first column gains a divider beside them. */
    .masthead .NodeLevel0 > .CSSFacetNavModules > :not(.NodeLevel1) {
        flex: 0 0 clamp(220px, 18%, 300px) !important;
        align-self: flex-start;
        height: auto !important;
        margin: 32px 32px 40px 0 !important;
    }

    /* The platform crops the advert to a fixed box. The image sets the height instead, so it
       keeps the proportions it was uploaded at; the caption still sits over it. */
    .masthead .NodeLevel0 > .CSSFacetNavModules > :not(.NodeLevel1) .photo {
        position: relative !important;
        height: auto !important;
    }

    .masthead .NodeLevel0 > .CSSFacetNavModules > :not(.NodeLevel1) .photo img {
        position: static !important;
        display: block;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    .masthead .NodeLevel0 > .CSSFacetNavModules:has(> :not(.NodeLevel1)) > .NodeLevel1:first-child {
        padding-left: 32px !important;
        border-left: 1px solid var(--plc-line) !important;
    }

    .masthead .NodeLevel0 .NodeLevel1 > a {
        display: block !important;
        width: auto !important;
        margin: 0 0 16px !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        color: var(--plc-ink) !important;
        font-family: proxima-nova, sans-serif !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        letter-spacing: 0 !important;
        line-height: 1.3 !important;
        text-transform: none !important;
        opacity: 1 !important;
    }

    .masthead .NodeLevel0 .NodeLevel1 > .CSSFacetNavModules {
        display: block !important;
        position: static !important;
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }

    .masthead .NodeLevel0 .NodeLevel2 {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        break-inside: avoid;
    }

    .masthead .NodeLevel0 .NodeLevel2 > a {
        position: relative;
        display: inline-block !important;
        float: none !important;
        margin: 0 !important;
        padding: 5px 0 !important;
        background: transparent !important;
        color: #5f6368 !important;
        font-family: proxima-nova, sans-serif !important;
        font-size: 15px !important;
        font-weight: 400 !important;
        letter-spacing: 0 !important;
        line-height: 1.45 !important;
        text-transform: none !important;
        text-decoration: none !important;
        transition: color 0.2s;
    }

    /* An underline that draws in under each link on hover */
    .masthead .NodeLevel0 .NodeLevel2 > a::before {
        content: "";
        display: block !important;
        position: absolute;
        left: 0;
        bottom: 3px;
        width: 0;
        height: 1px;
        background: currentColor;
        transition: width 0.3s ease-in-out;
    }

    .masthead .NodeLevel0 .NodeLevel2 > a:hover {
        color: var(--plc-ink) !important;
    }

    .masthead .NodeLevel0 .NodeLevel2 > a:hover::before {
        width: 100%;
    }

    /* Opening: the panel draws down, then each column rises in turn. Moving from one open menu to
       another (`plc-menu-switch`, set by the JS) only fades the columns, so the panel does not redraw. */
    .masthead .NodeLevel0 > .CSSFacetNavModules.active {
        animation: plc-menu-draw 0.5s cubic-bezier(0.3, 1, 0.3, 1) backwards;
    }

    .masthead .NodeLevel0 > .CSSFacetNavModules.active > * {
        animation: plc-menu-rise 0.55s cubic-bezier(0.3, 1, 0.3, 1) 0.08s backwards;
    }

    .masthead .NodeLevel0 > .CSSFacetNavModules.active > :nth-child(2) { animation-delay: 0.12s; }
    .masthead .NodeLevel0 > .CSSFacetNavModules.active > :nth-child(3) { animation-delay: 0.16s; }
    .masthead .NodeLevel0 > .CSSFacetNavModules.active > :nth-child(4) { animation-delay: 0.2s; }
    .masthead .NodeLevel0 > .CSSFacetNavModules.active > :nth-child(5) { animation-delay: 0.24s; }
    .masthead .NodeLevel0 > .CSSFacetNavModules.active > :nth-child(n+6) { animation-delay: 0.28s; }

    html.plc-menu-switch .masthead .NodeLevel0 > .CSSFacetNavModules.active {
        animation: none;
    }

    html.plc-menu-switch .masthead .NodeLevel0 > .CSSFacetNavModules.active > * {
        animation-name: plc-menu-fade;
        animation-duration: 0.3s;
        animation-delay: 0s;
    }
}

@keyframes plc-menu-draw {
    from { clip-path: inset(0 0 100% 0); }
    to { clip-path: inset(0); }
}

@keyframes plc-menu-rise {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: none; }
}

@keyframes plc-menu-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .masthead .NodeLevel0 > .CSSFacetNavModules.active,
    .masthead .NodeLevel0 > .CSSFacetNavModules.active > * {
        animation: none !important;
    }
}

/* Mobile and tablet (<=1024px): centred logo, evenly spaced icons */
@media screen and (max-width: 1024px) {
    :root {
        --plc-topbar-h: 34px;
        --plc-logo-w: clamp(130px, 36vw, 180px);
    }

    .plc-topbar {
        font-size: 11px;
    }

    .plc-ticker__dot {
        margin: 0 22px;
    }

    .masthead .navIcons {
        position: relative;
    }

    .masthead .navIcons .logoContainer {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        z-index: 2;
        display: flex;
        align-items: center;
        width: auto;
        height: 100%;
        padding: 0;
    }

    .masthead .navIcons .logoContainer .logo {
        width: var(--plc-logo-w);
        height: auto;
        aspect-ratio: var(--plc-logo-ratio);
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }

    .masthead .navIcons .menu-icons-header {
        width: 100%;
    }

    .masthead .navIcons .menu-icons-header > [class*="icon-"] {
        display: block;
        flex: 1 1 0;
        width: auto;
        max-width: none;
        text-align: center;
        color: var(--plc-ink);
    }

    .masthead .navIcons .menu-icons-header .icon-menu {
        order: -1;
    }

    .masthead .navIcons .menu-icons-header .icon-search {
        order: 0;
    }

    /* Clears the centred logo, with a little room either side */
    .masthead .navIcons .menu-icons-header .icon-bag {
        order: 4;
        margin-left: calc(var(--plc-logo-w) + 24px);
    }

    .masthead .navIcons .menu-icons-header .icon-head {
        order: 5;
    }

    .masthead .navIcons .icon-bag .basketPip {
        background: var(--plc-brand);
        color: #ffffff;
    }
}

/* The platform fixes `.wrapper.masthead` permanently, with an identity transform that traps fixed
   descendants. It is put back in normal flow here (keeping the platform's z-index of 100 so the menu
   overlay stacks correctly) and the JS pins it once the top bar has scrolled past. */
.wrapper.masthead {
    position: relative !important;
    z-index: 100 !important;
    transform: none !important;
    /* One edge-to-edge rule under the whole header */
    border-bottom: 1px solid var(--plc-line) !important;
}

/* The platform leaves the account panel see-through */
.masthead .menuOptions > .loginCtr {
    background: var(--plc-header-bg) !important;
}

/* Menu adverts, in every layout: the card is exactly the height of its photo. The platform gives
   the card a minimum height (and can stretch it to the tallest column), which left the caption's
   gradient hanging below shorter photos. */
.masthead .NodeLevel0 > .CSSFacetNavModules > :not(.NodeLevel1) {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    align-self: flex-start !important;
    overflow: hidden;
}

.masthead .NodeLevel0 > .CSSFacetNavModules > :not(.NodeLevel1) .photo {
    position: relative !important;
    height: auto !important;
    min-height: 0 !important;
}

.masthead .NodeLevel0 > .CSSFacetNavModules > :not(.NodeLevel1) .photo img {
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

/* The caption and its gradient cover the photo exactly */
.masthead .NodeLevel0 > .CSSFacetNavModules > :not(.NodeLevel1) .bannerTxtCtrGrid {
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    height: auto !important;
    min-height: 0 !important;
}

/* On tablets the full-width advert gets very large, so it is capped */
@media screen and (max-width: 1024px) {
    .masthead .NodeLevel0 > .CSSFacetNavModules > :not(.NodeLevel1) {
        max-width: 400px !important;
    }
}

/* Only one advert per menu, even if the site's advert script adds one twice */
.masthead .NodeLevel0 > .CSSFacetNavModules > :not(.NodeLevel1) ~ :not(.NodeLevel1) {
    display: none !important;
}

/* The basket page styles every button full width, which stretched the floating WhatsApp button
   (Elfsight) right across the bottom of the screen. It is put back to its own round size. */
body.new-basket [class*="FloatingButton__FloatingButtonContainer"] {
    left: auto !important;
    width: auto !important;
}

body.new-basket [class*="FloatingButton__FloatingButtonContainer"] button {
    display: block !important;
    width: fit-content !important;
    height: fit-content !important;
    line-height: normal !important;
    margin: 0 !important;
}

body.new-basket [class*="FloatingButton__FloatingButtonContainer"] button [class*="button-"] {
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
    margin: 0 !important;
}

.wrapper.masthead.plc-masthead-fixed {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 100 !important;
}

.plc-masthead-spacer {
    height: 0;
}

body {
    padding-top: 0 !important;
}

/* Predictive search (loaded by the JS). Its theme colours come from `--cg-color-*` variables this
   site does not define, so they are set here. */
.suggestions-wrapper {
    --ss-accent: var(--plc-brand);
    --ss-surface: var(--plc-panel-bg);
}

.suggestions-wrapper .ils-tag-value {
    color: var(--plc-brand);
}

/* Mobile menu: the same white, ruled look as the desktop mega menu in place of the platform's dark
   panels with rounded cards. */
@media screen and (max-width: 1024px) {
    .masthead .ctrNavigation,
    .masthead .ctrNavigation > .CSSFacetNavModules,
    .masthead .NodeLevel0 > .CSSFacetNavModules,
    .masthead .NodeLevel0 > .CSSFacetNavModules.active {
        background: var(--plc-header-bg) !important;
        color: var(--plc-ink) !important;
    }

    .masthead .ctrNavigation {
        border-top: 1px solid var(--plc-line) !important;
    }

    .masthead .NodeLevel0 > a,
    .masthead .NodeLevel0 > a.active {
        background: var(--plc-header-bg) !important;
        color: var(--plc-ink) !important;
        border-top: 0 !important;
        border-bottom: 1px solid var(--plc-line) !important;
        font-family: proxima-nova, sans-serif !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
    }

    /* The platform draws each row's chevron, and the open section's close cross, from these two
       short bars */
    .masthead .NodeLevel0 > a::before,
    .masthead .NodeLevel0 > a::after {
        background-color: var(--plc-ink) !important;
    }

    .masthead .NodeLevel0.plc-nav-sale > a {
        color: var(--plc-sale) !important;
    }

    /* The open section's title bar */
    .masthead .NodeLevel0 > a.active {
        font-size: 16px !important;
    }

    /* The menu and the open section end at the bottom of the screen (the JS measures where they
       start), with room at the foot so the floating Google reviews badge does not cover the last
       links. */
    .masthead .ctrNavigation {
        height: calc(100vh - var(--plc-nav-top, 0px)) !important;
        height: calc(100dvh - var(--plc-nav-top, 0px)) !important;
        max-height: none !important;
    }

    .masthead .NodeLevel0 > .CSSFacetNavModules.active {
        height: calc(100vh - var(--plc-panel-top, 0px)) !important;
        height: calc(100dvh - var(--plc-panel-top, 0px)) !important;
        max-height: none !important;
        overflow-y: auto !important;
        /* A plain stack: the platform's grid shrank the groups and the advert to fit the height */
        display: block !important;
    }

    .masthead .ctrNavigation > .CSSFacetNavModules,
    .masthead .NodeLevel0 > .CSSFacetNavModules.active {
        padding: 0 0 120px !important;
    }

    .masthead .NodeLevel0 .NodeLevel1 {
        margin: 0 !important;
        padding: 24px 16px !important;
        background: transparent !important;
        border: 0 !important;
        border-bottom: 1px solid var(--plc-line) !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .masthead .NodeLevel0 .NodeLevel1 > a {
        display: block !important;
        margin: 0 0 10px !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        color: var(--plc-ink) !important;
        font-family: proxima-nova, sans-serif !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        letter-spacing: 0 !important;
        line-height: 1.3 !important;
        text-transform: none !important;
    }

    .masthead .NodeLevel0 .NodeLevel1 > .CSSFacetNavModules,
    .masthead .NodeLevel0 .NodeLevel2 {
        background: transparent !important;
    }

    .masthead .NodeLevel0 .NodeLevel2 > a {
        display: inline-block !important;
        margin: 0 !important;
        padding: 7px 0 !important;
        background: transparent !important;
        color: #5f6368 !important;
        font-family: proxima-nova, sans-serif !important;
        font-size: 15px !important;
        font-weight: 400 !important;
        letter-spacing: 0 !important;
        line-height: 1.45 !important;
        text-transform: none !important;
    }

    /* Menu adverts keep their uploaded proportions, full width under the links */
    .masthead .NodeLevel0 > .CSSFacetNavModules > :not(.NodeLevel1) {
        display: block !important;
        order: 99 !important;
        width: auto !important;
        height: auto !important;
        margin: 24px 16px !important;
    }

    .masthead .NodeLevel0 > .CSSFacetNavModules > :not(.NodeLevel1) .photo {
        position: relative !important;
        height: auto !important;
    }

    .masthead .NodeLevel0 > .CSSFacetNavModules > :not(.NodeLevel1) .photo img {
        position: static !important;
        display: block;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    /* Each group rises in turn as a section opens, as on desktop but quicker */
    .masthead .NodeLevel0 > .CSSFacetNavModules.active > * {
        animation: plc-menu-rise 0.4s cubic-bezier(0.3, 1, 0.3, 1) backwards;
    }

    .masthead .NodeLevel0 > .CSSFacetNavModules.active > :nth-child(2) { animation-delay: 0.04s; }
    .masthead .NodeLevel0 > .CSSFacetNavModules.active > :nth-child(3) { animation-delay: 0.08s; }
    .masthead .NodeLevel0 > .CSSFacetNavModules.active > :nth-child(n+4) { animation-delay: 0.12s; }
}

@media screen and (max-width: 1024px) and (prefers-reduced-motion: reduce) {
    .masthead .NodeLevel0 > .CSSFacetNavModules.active > * {
        animation: none !important;
    }
}