/* =========================================================
   BESTDEAL
   PRODUCT LINKS + RAL VARIANT PICKER
   ========================================================= */


/* =========================================================
   PŮVODNÍ SHOPTET VARIANTY
   ========================================================= */

.bd-ral-original {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: 0 !important;

    overflow: hidden !important;

    opacity: 0 !important;

    pointer-events: none !important;

    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;

    white-space: nowrap !important;
}


/* =========================================================
   PRODUKTOVÁ NAVIGACE
   ========================================================= */

.bd-product-links {
    width: 100%;

    box-sizing: border-box;

    margin:
        0
        0
        22px
        0;
}


/* =========================================================
   NADPIS PRODUKTOVÉ NAVIGACE
   ========================================================= */

.bd-product-links-title {
    display: block;

    width: 100%;

    margin:
        0
        0
        9px
        0;

    color: #222;

    font-size: 13px;
    line-height: 1.2;

    font-weight: 600;

    text-transform: uppercase;
}


/* =========================================================
   SEZNAM ODKAZŮ
   ========================================================= */

.bd-product-links-list {
    display: flex;

    align-items: stretch;

    flex-wrap: wrap;

    width: 100%;

    box-sizing: border-box;

    gap: 8px;
}


/* =========================================================
   JEDEN PRODUKTOVÝ ODKAZ
   ========================================================= */

.bd-product-link {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 100px;
    min-height: 44px;

    box-sizing: border-box;

    padding:
        11px
        20px;

    border:
        1px
        solid
        #d9d9d9;

    border-radius: 0 !important;

    background: #fff;

    color: #333 !important;

    font-family: inherit;

    font-size: 13px;
    line-height: 1;

    font-weight: 400;

    text-align: center;

    text-decoration: none !important;

    box-shadow:
        0px 0px 30px
        rgba(0, 0, 0, 0.07);

    transition:
        background .15s ease,
        color .15s ease,
        border-color .15s ease,
        box-shadow .15s ease;
}


/* =========================================================
   PRODUKTOVÝ ODKAZ - HOVER
   ========================================================= */

.bd-product-link:hover {
    border-color: #777;

    background: #f8f8f8;

    color: #111 !important;

    text-decoration: none !important;

    box-shadow:
        0px 0px 20px
        rgba(0, 0, 0, 0.12);
}


/* =========================================================
   AKTIVNÍ PRODUKT
   ========================================================= */

.bd-product-link.is-active {
    border-color: #222;

    background: #222;

    color: #fff !important;

    font-weight: 600;

    cursor: default;

    box-shadow:
        0px 0px 30px
        rgba(0, 0, 0, 0.12);
}


.bd-product-link.is-active:hover {
    border-color: #222;

    background: #222;

    color: #fff !important;
}


/* =========================================================
   RAL PICKER
   ========================================================= */

.bd-ral-picker {
    width: 100%;

    box-sizing: border-box;

    margin-top: 15px;
    margin-bottom: 20px;
}


/* =========================================================
   TOOLBAR
   ========================================================= */

.bd-ral-toolbar {
    display: flex !important;

    align-items: center !important;

    flex-wrap: wrap !important;

    width: 100%;

    box-sizing: border-box;

    gap:
        12px
        20px;

    margin-bottom: 18px;
}


/* =========================================================
   SEARCH WRAPPER
   ========================================================= */

.bd-ral-search-wrap {
    position: relative;

    flex:
        1
        1
        320px;

    min-width: 260px;

    box-sizing: border-box;
}


/* =========================================================
   SEARCH INPUT
   ========================================================= */

.bd-ral-search {
    display: block;

    width: 100%;
    height: 48px;

    min-width: 0;

    box-sizing: border-box;

    margin: 0 !important;

    padding:
        0
        15px
        0
        48px !important;

    border:
        1px
        solid
        #d9d9d9 !important;

    border-radius: 0 !important;

    outline: none !important;

    background: #fff;

    color: #222;

    font-family: inherit;

    font-size: 14px;
    font-weight: 400;

    box-shadow:
        0px 0px 30px
        rgba(0, 0, 0, 0.1);

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}


.bd-ral-search:hover {
    border-color: #b5b5b5 !important;
}


.bd-ral-search:focus {
    border-color: #777 !important;

    box-shadow:
        0px 0px 30px
        rgba(0, 0, 0, 0.13);
}


.bd-ral-search::placeholder {
    color: #999;

    opacity: 1;
}


.bd-ral-search::-webkit-search-cancel-button {
    display: none;
}


/* =========================================================
   LUPA
   ========================================================= */

.bd-ral-search-icon {
    position: absolute;

    left: 16px;
    top: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    transform:
        translateY(-50%);

    color: #999;

    pointer-events: none;

    z-index: 2;
}


.bd-ral-search-icon svg {
    display: block;

    width: 18px;
    height: 18px;
}


/* =========================================================
   SWITCH
   ========================================================= */

.bd-ral-switch {
    position: static !important;

    display:
        inline-flex !important;

    align-items:
        center !important;

    flex:
        0
        0
        auto !important;

    width:
        auto !important;

    min-width:
        max-content !important;

    height: 48px;

    box-sizing: border-box;

    margin: 0 !important;
    padding: 0 !important;

    gap: 9px;

    cursor: pointer;

    white-space: nowrap;

    user-select: none;
}


.bd-ral-switch input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;

    pointer-events: none;
}


/* =========================================================
   SWITCH TRACK
   ========================================================= */

.bd-ral-switch-track {
    position: relative;

    display: block;

    width: 42px;
    height: 24px;

    flex:
        0
        0
        42px;

    box-sizing: border-box;

    border:
        1px
        solid
        #ccc;

    border-radius: 0 !important;

    background: #ddd;

    transition:
        background .2s ease,
        border-color .2s ease;
}


/* =========================================================
   SWITCH POSUVNÍK
   ========================================================= */

.bd-ral-switch-track::after {
    content: "";

    position: absolute;

    left: 3px;
    top: 3px;

    display: block;

    width: 16px;
    height: 16px;

    box-sizing: border-box;

    border-radius: 0 !important;

    background: #fff;

    box-shadow:
        0 1px 4px
        rgba(0, 0, 0, .20);

    transition:
        transform .2s ease;
}


.bd-ral-switch input:checked
+ .bd-ral-switch-track {
    background: #222;

    border-color: #222;
}


.bd-ral-switch input:checked
+ .bd-ral-switch-track::after {
    transform:
        translateX(18px);
}


.bd-ral-switch-text {
    color: #222;

    font-size: 13px;
    line-height: 1;

    white-space: nowrap;
}


/* =========================================================
   BOX VZORNÍKU
   ========================================================= */

.bd-ral-box {
    position: relative;

    width: 100%;
    height: 330px;

    box-sizing: border-box;

    overflow-x: hidden;
    overflow-y: auto;

    padding: 18px;

    border:
        1px
        solid
        #e1e1e1;

    border-radius: 0 !important;

    background: #fff;

    box-shadow:
        0px 0px 30px
        rgba(0, 0, 0, 0.1);

    scrollbar-width: thin;

    scrollbar-color:
        #bbb
        transparent;
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

.bd-ral-box::-webkit-scrollbar {
    width: 6px;
}


.bd-ral-box::-webkit-scrollbar-track {
    background: transparent;
}


.bd-ral-box::-webkit-scrollbar-thumb {
    background: #bbb;

    border-radius: 0;
}


.bd-ral-box::-webkit-scrollbar-thumb:hover {
    background: #999;
}


/* =========================================================
   GRID

   Konstantní velikost 68 px.
   ========================================================= */

.bd-ral-grid {
    display: grid;

    width: 100%;

    box-sizing: border-box;

    grid-template-columns:
        repeat(
            auto-fill,
            68px
        );

    justify-content:
        space-between;

    align-items:
        start;

    column-gap: 8px;

    row-gap: 14px;
}


/* =========================================================
   VARIANTA
   ========================================================= */

.bd-ral-item {
    position: relative;

    display: flex;

    flex-direction: column;

    align-items: center;

    width: 68px;

    min-width: 68px;

    max-width: 68px;

    box-sizing: border-box;

    padding: 0;

    border: 0;

    border-radius: 0 !important;

    background: transparent;

    font: inherit;

    appearance: none;

    -webkit-appearance: none;

    cursor: pointer;
}


/* =========================================================
   SWATCH WRAPPER
   ========================================================= */

.bd-ral-swatch-wrap {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 68px;
    height: 68px;

    min-width: 68px;
    min-height: 68px;

    max-width: 68px;
    max-height: 68px;

    box-sizing: border-box;

    padding: 8px;

    border:
        1px
        solid
        #dedede;

    border-radius: 0 !important;

    background: #fff;

    transition:
        border-color .15s ease,
        transform .15s ease,
        box-shadow .15s ease;
}


/* =========================================================
   BARVA
   ========================================================= */

.bd-ral-color {
    display: block;

    width: 50px;
    height: 50px;

    min-width: 50px;
    min-height: 50px;

    max-width: 50px;
    max-height: 50px;

    box-sizing: border-box;

    border:
        1px
        solid
        rgba(0, 0, 0, .06);

    border-radius: 0 !important;
}


/* =========================================================
   HOVER
   ========================================================= */

.bd-ral-item:hover
.bd-ral-swatch-wrap {
    z-index: 2;

    border-color: #777;

    transform:
        translateY(-1px);

    box-shadow:
        0px 0px 18px
        rgba(0, 0, 0, 0.12);
}


/* =========================================================
   VYBRANÝ ODSTÍN
   ========================================================= */

.bd-ral-item.is-selected
.bd-ral-swatch-wrap {
    border:
        2px
        solid
        #222;

    padding: 7px;

    box-shadow:
        0
        0
        0
        2px
        #fff,

        0
        0
        0
        3px
        #222;
}


/* =========================================================
   FAJFKA
   ========================================================= */

.bd-ral-item.is-selected
.bd-ral-swatch-wrap::after {
    content: "✓";

    position: absolute;

    right: -6px;
    top: -6px;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;

    box-sizing: border-box;

    border-radius: 0 !important;

    background: #222;

    color: #fff;

    font-size: 11px;

    font-weight: 700;

    line-height: 1;

    box-shadow:
        0px
        2px
        8px
        rgba(0, 0, 0, .18);
}


/* =========================================================
   NÁZEV VARIANTY
   ========================================================= */

.bd-ral-name {
    display: none;

    width: 82px;

    box-sizing: border-box;

    margin-top: 8px;

    padding:
        0
        2px;

    color: #444;

    font-size: 11px;

    line-height: 1.3;

    text-align: center;

    overflow-wrap: anywhere;
}


.bd-ral-picker.show-names
.bd-ral-name {
    display: block;
}


/* =========================================================
   RAL ČÁST NÁZVU
   ========================================================= */

.bd-ral-name-main {
    display: block;

    width: 100%;

    color: #222;

    font-size: 11px;

    line-height: 1.25;

    font-weight: 700;

    text-align: center;
}


/* =========================================================
   TEXT BARVY
   ========================================================= */

.bd-ral-name-sub {
    display: block;

    width: 100%;

    margin-top: 2px;

    color: #555;

    font-size: 10px;

    line-height: 1.25;

    font-weight: 400;

    text-align: center;
}


/* =========================================================
   TOOLTIP
   ========================================================= */

.bd-ral-global-tooltip {
    position: fixed;

    z-index: 999999;

    display: none;

    box-sizing: border-box;

    min-width: max-content;

    padding:
        7px
        10px;

    border-radius: 0 !important;

    background: #222;

    color: #fff;

    font-family: inherit;

    font-size: 11px;

    line-height: 1.3;

    text-align: center;

    white-space: nowrap;

    pointer-events: none;

    box-shadow:
        0px
        4px
        15px
        rgba(0, 0, 0, .18);
}


.bd-ral-global-tooltip.is-visible {
    display: block;
}


.bd-ral-tooltip-main {
    display: block;

    color: #fff;

    font-weight: 700;
}


.bd-ral-tooltip-sub {
    display: block;

    margin-top: 2px;

    color: #ddd;

    font-size: 10px;

    font-weight: 400;
}


/* =========================================================
   NIC NENALEZENO
   ========================================================= */

.bd-ral-empty {
    display: none;

    position: absolute;

    inset: 0;

    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    padding: 30px;

    background: #fff;

    text-align: center;
}


.bd-ral-empty.is-visible {
    display: flex;
}


.bd-ral-empty-title {
    margin-bottom: 5px;

    color: #222;

    font-size: 15px;

    font-weight: 600;
}


.bd-ral-empty-text {
    color: #777;

    font-size: 12px;
}


/* =========================================================
   ODFILTROVANÁ VARIANTA
   ========================================================= */

.bd-ral-item.is-hidden {
    display: none !important;
}


/* =========================================================
   RESPONZIVA
   ========================================================= */

@media (max-width: 650px) {

    /* produktové odkazy */

    .bd-product-links {
        margin-bottom: 18px;
    }


    .bd-product-links-list {
        gap: 7px;
    }


    .bd-product-link {
        flex:
            1
            1
            calc(50% - 4px);

        min-width: 0;

        padding:
            11px
            12px;
    }


    /* toolbar */

    .bd-ral-toolbar {
        gap: 10px;
    }


    .bd-ral-search-wrap {
        flex:
            1
            1
            100%;

        width: 100%;

        min-width: 100%;
    }


    .bd-ral-switch {
        height: auto;

        flex:
            0
            0
            auto !important;
    }


    /* vzorník */

    .bd-ral-box {
        height: 310px;

        padding: 12px;
    }


    /*
     * Vzorky zůstávají pořád 68 × 68.
     */

    .bd-ral-grid {
        grid-template-columns:
            repeat(
                auto-fill,
                68px
            );

        justify-content:
            space-between;

        column-gap: 6px;

        row-gap: 12px;
    }

}


/* =========================================================
   MALÉ MOBILY
   ========================================================= */

@media (max-width: 380px) {

    .bd-product-link {
        flex:
            1
            1
            100%;
    }

}