.sot-categories[hidden] {
    display: none;
}

.sot-shop-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sot-categories {
    position: relative;
    text-align: start;
}

.sot-categories-toggle,
.sot-mobile-quick-order {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
}

.sot-categories-toggle {
    list-style: none;
    color: #fff;
    background: var(--sot-navy-2);
    cursor: pointer;
}

.sot-categories-toggle::-webkit-details-marker {
    display: none;
}

.sot-categories-toggle:hover,
.sot-categories[open] .sot-categories-toggle {
    background: #14547e;
}

.sot-categories-toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-inline-start: 3px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: translateY(-2px) rotate(45deg);
}

.sot-categories[open] .sot-categories-toggle::after {
    transform: translateY(2px) rotate(225deg);
}

.sot-categories-icon {
    flex: 0 0 15px;
    height: 12px;
    border-block: 2px solid currentColor;
    background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}

.sot-categories-panel {
    position: absolute;
    z-index: 1010;
    inset-block-start: calc(100% + 6px);
    inset-inline-start: 0;
    width: min(300px, calc(100vw - 24px));
    max-height: min(360px, 60vh);
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--sot-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 36px #082a452b;
}

.sot-category-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sot-categories-panel a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 5px;
    color: var(--sot-navy);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.sot-categories-panel a:hover {
    background: #eef7fb;
}

.sot-categories-panel .sot-manufacturers-link {
    margin-block-start: 4px;
    border-block-start: 1px solid var(--sot-border);
    color: #08638b;
}

.sot-header .sot-mobile-quick-order,
.sot-header .sot-quick-order-link {
    color: var(--sot-navy);
    background: var(--sot-yellow);
}

.sot-header .sot-mobile-quick-order:hover,
.sot-header .sot-quick-order-link:hover {
    background: #ffdf42;
}

.sot-header .sot-shop-actions :focus-visible,
.sot-header .sot-quick-order-link:focus-visible {
    outline: 2px solid #0877a0;
    outline-offset: 2px;
}

.sot-header .sot-categories-toggle:focus-visible {
    outline-color: #fff;
}

@media (min-width: 1025px) {
    .sot-navigation:not(.sot-navigation-ready) .sot-shop-actions,
    .sot-header .sot-mobile-quick-order {
        display: none;
    }

    .sot-header .sot-quick-order-link {
        width: auto;
        padding: 0 12px;
    }

    .sot-header .sot-quick-order-link > span:last-child {
        display: inline;
    }

    .sot-header .header-lower {
        grid-template-columns: minmax(170px, .72fr) minmax(235px, 1.35fr) auto;
        column-gap: clamp(16px, 2vw, 28px);
    }

    .sot-header .sot-navigation-ready {
        display: flex;
        align-items: center;
        padding-inline: max(20px, calc((100% - 1400px) / 2));
    }

    .sot-header .sot-navigation-ready .header-menu {
        flex: 1 1 auto;
        width: auto !important;
        min-width: 0;
        padding-inline: 12px 0;
        box-shadow: none;
    }

    .sot-navigation-ready .category-navigation-list-wrapper,
    .sot-navigation-ready .mega-menu > li.root-category-items,
    .sot-navigation-ready .mega-menu > li.category-menu-item {
        display: none !important;
    }

    .sot-navigation-ready .header-menu > .mega-menu,
    .sot-navigation-ready .header-menu > .top-menu {
        float: none;
    }
}

@media (max-width: 1024px) {
    .sot-header .header-lower {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
    }

    .sot-header .sot-quick-order-link {
        display: none !important;
    }

    .sot-header .header-links-wrapper .header-links > ul {
        display: none;
    }

    .sot-header .sot-shop-actions {
        padding: 7px 12px;
        background: var(--sot-navy);
    }

    .sot-categories,
    .sot-mobile-quick-order {
        flex: 1 1 0;
    }
}
