/* =========================================================
   TRENTOTTO - STOCK MAGASIN
   ========================================================= */
div#fm-stock {
    display: none;
} 

#tt-stock-ui {
    width: 100%;
    max-width: 100%;
    margin: 25px 0 25px auto;
    box-sizing: border-box;
}

#tt-stock-ui * {
    box-sizing: border-box;
}


/* =========================================================
   TABLEAU FASTMAG ORIGINAL
   ========================================================= */

#fm-stock table {
    display: none !important;
}


/* =========================================================
   BLOC RESUME
   ========================================================= */

.tt-stock-summary {
    width: 100%;
    min-height: 82px;

    display: flex;
    align-items: center;

    padding: 16px 18px;

    margin: 0;

    border: 1px solid #dedede;
    border-radius: 2px;

    background: #fff;

    color: #222;

    text-align: left;

    cursor: pointer;

    font-family: inherit;

    appearance: none;
    -webkit-appearance: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.tt-stock-summary:hover {
    border-color: #bbb;

    box-shadow:
        0 4px 16px rgba(0, 0, 0, .07);

    transform: translateY(-1px);
}


/* =========================================================
   ICONE
   ========================================================= */

.tt-stock-icon {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 14px;

    color: #222;
}

.tt-stock-icon svg {
    width: 25px;
    height: 25px;
}


/* =========================================================
   CONTENU
   ========================================================= */

.tt-stock-content {
    min-width: 0;

    flex: 1;

    display: flex;
    flex-direction: column;

    gap: 3px;
}

.tt-stock-title {
    font-size: 12px;

    line-height: 1.3;

    color: #777;

    font-weight: 500;

    text-transform: uppercase;

    letter-spacing: .03em;
}

.tt-stock-store {
    display: block;

    font-size: 16px;

    line-height: 1.35;

    font-weight: 600;

    color: #222;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* =========================================================
   ATTRIBUTS
   ========================================================= */

.tt-stock-attributes {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 4px;

    font-size: 13px;

    line-height: 1.4;

    color: #666;
}

.tt-stock-attributes strong {
    color: #444;

    font-weight: 500;
}

.tt-stock-attribute-separator {
    color: #aaa;

    margin: 0 2px;
}


/* =========================================================
   QUANTITE
   ========================================================= */

.tt-stock-separator {
    display: block;

    width: 100%;

    height: 1px;

    margin: 5px 0 2px;

    background: #eee;
}

.tt-stock-quantity {
    font-size: 14px;

    line-height: 1.3;

    font-weight: 600;
}

.tt-stock-available {
    color: #198754;
}

.tt-stock-unavailable {
    color: #dc3545;
}


/* =========================================================
   FLECHE
   ========================================================= */

.tt-stock-arrow {
    flex: 0 0 auto;

    margin-left: 15px;

    font-size: 22px;

    line-height: 1;

    color: #555;

    transition:
        transform .2s ease;
}

.tt-stock-summary:hover .tt-stock-arrow {
    transform: translateX(3px);
}


/* =========================================================
   OVERLAY
   ========================================================= */

.tt-stock-overlay {
    position: fixed;

    inset: 0;

    z-index: 99998;

    background: rgba(0, 0, 0, .38);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity .25s ease,
        visibility .25s ease;
}

.tt-stock-overlay.is-open {
    opacity: 1;

    visibility: visible;
}


/* =========================================================
   PANNEAU
   ========================================================= */

.tt-stock-panel {
    position: fixed;

    top: 0;
    right: 0;
    bottom: 0;

    z-index: 99999;

    width: 460px;

    max-width: 92vw;

    display: flex;

    flex-direction: column;

    background: #fff;

    box-shadow:
        -8px 0 35px rgba(0, 0, 0, .15);

    transform: translateX(105%);

    visibility: hidden;

    transition:
        transform .3s cubic-bezier(.22, .61, .36, 1),
        visibility .3s ease;
}

.tt-stock-panel.is-open {
    transform: translateX(0);

    visibility: visible;
}


/* =========================================================
   HEADER
   ========================================================= */

.tt-panel-header {
    flex: 0 0 auto;

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

    padding: 24px;

    border-bottom: 1px solid #e7e7e7;
}

.tt-panel-title {
    font-size: 19px;

    line-height: 1.3;

    font-weight: 600;

    color: #222;
}

.tt-panel-subtitle {
    margin-top: 5px;

    font-size: 13px;

    line-height: 1.4;

    color: #777;
}

.tt-panel-close {
    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: #f4f4f4;

    color: #333;

    font-size: 26px;

    line-height: 1;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}

.tt-panel-close:hover {
    background: #e8e8e8;

    transform: rotate(90deg);
}


/* =========================================================
   FILTRES
   ========================================================= */

.tt-panel-filters {
    flex: 0 0 auto;

    padding: 18px 24px;

    border-bottom: 1px solid #e7e7e7;

    background: #fafafa;
}

.tt-filter-title {
    margin-bottom: 12px;

    font-size: 12px;

    font-weight: 600;

    color: #666;

    text-transform: uppercase;

    letter-spacing: .04em;
}

.tt-filter-grid {
    display: grid;

    grid-template-columns: 1fr;

    gap: 10px;
}

.tt-filter-item {
    display: flex;

    flex-direction: column;

    gap: 5px;
}

.tt-filter-label {
    font-size: 12px;

    color: #666;

    font-weight: 500;
}

.tt-filter-select {
    width: 100%;

    height: 42px;

    padding: 0 12px;

    border: 1px solid #d8d8d8;

    border-radius: 2px;

    background: #fff;

    color: #222;

    font-family: inherit;

    font-size: 14px;

    cursor: pointer;

    outline: none;
}

.tt-filter-select:focus {
    border-color: #999;
}

.tt-filter-reset {
    margin-top: 13px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #555;

    font-family: inherit;

    font-size: 13px;

    text-decoration: underline;

    cursor: pointer;
}

.tt-filter-reset:hover {
    color: #111;
}


/* =========================================================
   LISTE MAGASINS
   ========================================================= */

.tt-panel-content {
    flex: 1 1 auto;

    min-height: 0;

    overflow-y: auto;

    padding: 0 24px;
}

.tt-store-row {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 18px 0;

    border-bottom: 1px solid #eee;
}

.tt-store-row:last-child {
    border-bottom: 0;
}

.tt-store-info {
    min-width: 0;

    flex: 1;
}

.tt-store-name {
    font-size: 15px;

    line-height: 1.35;

    font-weight: 600;

    color: #222;
}

.tt-store-info .tt-stock-attributes {
    margin-top: 4px;
}

.tt-store-stock {
    flex: 0 0 auto;

    text-align: right;

    font-size: 14px;

    line-height: 1.3;

    font-weight: 600;

    white-space: nowrap;
}

.tt-stock-no-result {
    padding: 35px 10px;

    text-align: center;

    font-size: 14px;

    line-height: 1.5;

    color: #777;
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

.tt-panel-content::-webkit-scrollbar {
    width: 6px;
}

.tt-panel-content::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.tt-panel-content::-webkit-scrollbar-thumb {
    background: #cfcfcf;

    border-radius: 10px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    #tt-stock-ui {
        width: 100%;

        margin: 20px 0;
    }

    .tt-stock-summary {
        min-height: 76px;

        padding: 14px;
    }

    .tt-stock-icon {
        width: 34px;
        height: 34px;

        flex-basis: 34px;

        margin-right: 11px;
    }

    .tt-stock-icon svg {
        width: 22px;
        height: 22px;
    }

    .tt-stock-store {
        font-size: 15px;
    }

    .tt-stock-quantity {
        font-size: 13px;
    }

    .tt-stock-panel {
        width: 100%;

        max-width: 100%;
    }

    .tt-panel-header {
        padding: 20px 18px 17px;
    }

    .tt-panel-filters {
        padding: 16px 18px;
    }

    .tt-panel-content {
        padding: 0 18px;
    }

    .tt-store-row {
        gap: 12px;

        padding: 16px 0;
    }
}


/* =========================================================
   BLOQUER LE SCROLL DE LA PAGE
   ========================================================= */

body.tt-stock-panel-open {
    overflow: hidden;
}