/*******************************************************************************************
*   ___  _          ______                     _ _                _                        *
*  / _ \| |         | ___ \                   | (_)              | |              © 2025   *
* / /_\ | | _____  _| |_/ /_ __ __ _ _ __   __| |_ _ __   __ _   | |_ ___  __ _ _ __ ___   *
* |  _  | |/ _ \ \/ / ___ \ '__/ _` | '_ \ / _` | | '_ \ / _` |  | __/ _ \/ _` | '_ ` _ \  *
* | | | | |  __/>  <| |_/ / | | (_| | | | | (_| | | | | | (_| |  | ||  __/ (_| | | | | | | *
* \_| |_/_|\___/_/\_\____/|_|  \__,_|_| |_|\__,_|_|_| |_|\__, |  \___\___|\__,_|_| |_| |_| *
*                                                         __/ |                            *
*                                                        |___/                             *
* ---------------------------------------------------------------------------------------- *
* This is commercial software, only users who have purchased a valid license and accept    *
* to the terms of the License Agreement can install and use this program.                  *
* ---------------------------------------------------------------------------------------- *
* website: https://cs-cart.alexbranding.com                                                *
*   email: info@alexbranding.com                                                           *
*******************************************************************************************/
@__panel_height: 44px;

html:not(.ab-spt-fixed) {
    .ab-spt-floating-panel {
        z-index: 0 !important;
        top: 0 !important;
        position: relative;
    }
}

html.touchevents {
    body.ab-spt-fixed {
        .ab-spt-floating-panel.abt-has-fixed-menu {
            @media screen and (max-width: 767px) {
                height: @__panel_height;
            }
        }
    }
}

#ab-spt-after_h1-html {
    display: none;
}

.ab-spt-grayscale {
    color: fade(@font, 35%);
}

.ty-wysiwyg-content {
    .ab-spt-title {
        margin: 0;
        font-size: @headings_font_size - 2;
        border-bottom: 0;
    }
}

.ab-spt-floating-panel {
    overflow: hidden;
    height: @__panel_height;
    background: lighten(@base, 2.5%);

    @media screen and (max-width: 767px) {
        display: none;
    }
}

.ab-spt-anchors__wrap {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: nowrap;
    height: 44px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    box-sizing: border-box;

    &::-webkit-scrollbar {
        height: 6px;
        display: none;
    }

    &::-webkit-scrollbar-track {
        box-shadow: none;
        background: transparent;
        border-radius: 4px;
    }

    &::-webkit-scrollbar-thumb {
        border-radius: 4px;
        background: #ccc;

        &:hover {
            background: #a6a6a6;
        }
    }

    &:hover {
        &::-webkit-scrollbar {
            @media (min-width: 767px) {
                display: block;

            }
        }
    }
}

.ab-spt-anchors__item {
    flex: none;
    padding: 0;

    span {
        display: flex;
        align-items: center;
        height: @__panel_height;
        padding: 2px 0;
        font-size: 14px;
        text-decoration: none;
        color: fade(@font, 65%);
        border-bottom: 2px solid transparent;
        cursor: pointer;
        user-select: none;
        box-sizing: border-box;
        .transition(color .15s);

        @media (min-width: 767px) {
            &:hover {
                color: @links;
                border-bottom-color: transparent;
            }
        }

        &.active {
            color: @links;
            border-bottom-color: @links;
        }
    }

    &:not(:last-child) span {
        margin-right: 20px;
    }
}

body.ab-spt-fixed {
    @media screen and (min-width: 767px) {
        #ab-spt-floating-placeholder {
            height: @__panel_height;
        }
    }

    .ab-spt-floating-panel {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 300;

        @media screen and (max-width: @fluidContainerMaxWidth - 1) {
            height: auto;
        }

        @media screen and (max-width: 767px) {
            display: block;
        }
    }

    .ab-spt-anchors__wrap {
        @media screen and (max-width: @fluidContainerMaxWidth - 1) {
            display: flex;
            white-space: nowrap;
            width: 100%;
            min-width: 100%;
        }
    }
}
