﻿.store-switcher {
    display: inline-block;
}

.bm-select {
    padding: .4rem .6rem;
    border-radius: .5rem;
}

.bm-store-switcher {
    position: relative;
    display: inline-block;
}

.bm-store-btn {
    align-items: center;
    padding: .35rem .6rem;
    border: none;
    background: transparent;
    color: #8c8c8c;
    font-weight: 600;
    height: 30px;
    font-size: 14px;
}

.bm-store-btn__label {
    opacity: .9;
    font-weight: 500;
}

.bm-store-btn__code {
    letter-spacing: .5px;
    padding-right: 10px;
}

.bm-store-btn__chev {
    margin-left: .25rem;
}

.bm-store-menu {
    position: absolute;
    top: calc(100%);
    right: 0;
    left: auto;
    padding: 6px 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    z-index: 10001;
    cursor: default;
    min-width: 100%;
    max-width: 90vw;
    max-height: 40vw;
    overflow: auto;
    pointer-events: auto;
}

.bm-store-item {
    position: relative;
    z-index: 10001;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 5px 14px;
    border-radius: .4rem;
    cursor: default;
    display: flex;
    flex-direction: column;
    color: #ABABAB;
    font: 13px 'Roboto', sans-serif;
    &:hover

{
    background-color: #05A288;
    color: #fff;
}

&:focus-visible {
    background-color: #05A288;
    color: #fff;
}

}

.bm-store-item__name {
    font-size: .85rem;
    opacity: .7;
}

.store-search-container {
    padding: 6px 8px
}

.bm-store-menu input.store-search-input[type="text"] {
    width: 140px;
    height: 30px;
    font-size: 12px;
    padding: 0 5px;
}

.store-search-results {
    font-size: 11px;
    padding: 2px 8px
}

.bm-store-item[style*="display: none"] {
    display: none;
}

#storeSwitchModal {
    display: flex;
}

    #storeSwitchModal .modal-content {
        border-radius: 8px;
        box-shadow: none;
        border: 1px solid #c8c8c8;
        padding: 10px;
        max-width: unset;
        background: #fff;
    }

    #storeSwitchModal .modal-dialog {
        width: min(92vw, 650px);
        max-height: 92vh;
    }

    #storeSwitchModal .modal-header {
        background: none;
        border-bottom: none;
        padding: 16px 18px 8px 18px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    #storeSwitchModal .modal-title {
        width: 100%;
        font-size: 20px;
        text-align: center;
        text-transform: uppercase;
        font-weight: 700;
        color: #444444;
        letter-spacing: 0.6px;
    }

    #storeSwitchModal .modal-close {
        background: none;
        border: none;
        font-size: 30px;
        line-height: 1;
        color: #444444;
        margin: 0;
        float: right;
        cursor: pointer;
    }

    #storeSwitchModal .modal-body {
        padding: 10px;
        font-size: 16px;
        color: #444444;
        text-align: justify;
        line-height: 20px;
    }

    #storeSwitchModal .modal-footer {
        display: flex;
        gap: 10px;
        padding: 10px;
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
    }

    #storeSwitchModal .modal-btn {
        border: none;
        padding: 0 20px;
        height: auto;
        min-height: 45px;
        max-width: 300px;
        line-height: 20px;
        border-radius: 3px;
        background-color: #f1f1f1;
        font-size: 14px;
        color: #8c8c8c;
        text-transform: uppercase;
        font-weight: 700;
        transition: all .1s ease;
        padding: 5px;
        width: 100%;
        flex: 1 1 50%;
    }

     #storeSwitchModal .modal-btn:hover {
        background-color: #eaeaea;
     }

    #storeSwitchModal .modal-confirm {
        border: none;
        height: auto;
        min-height: 45px;
        border-radius: 3px;
        background-color: rgb(151, 104, 182);
        color: rgb(255, 255, 255);
        font-weight: 700;
        text-transform: uppercase;
        font-size: 14px;
        transition: 0.2s;
        display: inline-block;
    }

        #storeSwitchModal .modal-confirm:hover {
            background-color: #8561a2;
            color: rgb(255, 255, 255);
        }

@media (min-width:768px) {
    #storeSwitchModal .modal-content {
        padding: 24px;
    }

    #storeSwitchModal .modal-footer {
        flex-direction: row;
    }
}

@media (min-width:1024px) {
    #storeSwitchModal .modal-title {
        font-size: 25px;
    }

    .bm-store-btn {
        border-radius: .5rem;
    }
}

@media (max-width:1024px) {
    .bm-store-switcher:has(> .bm-store-menu.js-header-storeswitcher-trigger) .bm-store-btn {
        display: block;
        padding: 15px 20px;
        line-height: 18px;
        font-size: 13px;
        color: #8c8c8c;
        font-weight: 700;
        background-color: #f6f6f6;
        border-top: 3px solid #fff;
        cursor: pointer;
        text-transform: uppercase;
        height: auto;
        width: 100%;
        text-align: left;
    }

    .bm-store-switcher:has(> .bm-store-menu.js-header-storeswitcher-trigger) .bm-store-btn__code::before {
        display: none
    }

    .bm-store-switcher:has(> .bm-store-menu.js-header-storeswitcher-trigger) .bm-store-btn::before {
        content: "\6a";
        display: inline-block;
        float: right;
        font-size: 9px;
        font-family: "emporium-icons";
        transform: rotate(90deg);
        text-transform: none;
        color: #8c8c8c;
        transition: all .3s ease;
    }

    .bm-store-menu.js-header-storeswitcher-trigger {
        position: static;
        width: 100%;
        border: 0;
        border-radius: 0;
        margin-inline: auto;
        padding: 0;
        max-height: none;
        overflow: visible;
        height: auto;
    }

        .bm-store-menu.js-header-storeswitcher-trigger .bm-store-item {
            background-color: #f6f6f6;
            border-top: 3px solid #fff;
            cursor: pointer;
            display: block;
            position: relative;
            z-index: 0;
            padding: 16px 18px;
            font-size: 13px;
            line-height: 17px;
            color: #8c8c8c;
            font-weight: 700;
            width: 90%;
            border-radius: 0;
            margin: auto;
        }
}
