/* CS Theme 0.14.0 — components/mini-cart
 * Ordre de cascade conservé depuis la 0.13.0. Voir docs/CSS-0.14.0.md.
 */

.cs-mini-cart__trigger {
    position: relative;

    display: flex;
    align-items: center;

    padding: 0;

    border: 0;

    background: transparent;
    color: inherit;

    cursor: pointer;
}

.cs-mini-cart__panel {
    position: absolute;

    top: calc(100% + 18px);
    right: 0;

    z-index: 1800;

    width: 410px;
    max-width: calc(100vw - 30px);

    background: #ffffff;

    box-shadow:
        0 12px 38px
        rgba(0, 0, 0, 0.16);

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(-8px);

    pointer-events: none;

    transition:
        opacity 180ms ease,
        transform 180ms ease,
        visibility 180ms ease;
}

.cs-mini-cart.is-open
.cs-mini-cart__panel {
    opacity: 1;
    visibility: visible;

    transform:
        translateY(0);

    pointer-events: auto;
}

.cs-mini-cart__panel::before {
    content: "";

    position: absolute;

    top: -8px;
    right: 22px;

    width: 16px;
    height: 16px;

    background: #ffffff;

    transform:
        rotate(45deg);

    box-shadow:
        -3px
        -3px
        5px
        rgba(0, 0, 0, 0.025);
}

.cs-mini-cart__header {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 56px;

    padding:
        14px
        18px;

    border-bottom:
        1px solid
        var(--cs-border);

    background: #ffffff;
}

.cs-mini-cart__title {
    color: var(--cs-text);

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

    text-transform: uppercase;
}

.cs-mini-cart__close {
    width: 30px;
    height: 30px;

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

    padding: 0;

    border: 0;

    background: transparent;
    color: var(--cs-text);

    cursor: pointer;
}

.cs-mini-cart__close
.material-icons {
    font-size: 20px;
}

.cs-mini-cart__body {
    position: relative;
    z-index: 1;

    background: #ffffff;
}

.cs-mini-cart__products {
    max-height: min(
        460px,
        55vh
    );

    overflow-y: auto;

    overscroll-behavior: contain;

    scrollbar-width: thin;
}

.cs-mini-cart-product {
    display: grid;

    grid-template-columns:
        92px
        minmax(0, 1fr);

    gap: 14px;

    padding:
        16px
        18px;

    border-bottom:
        1px solid
        var(--cs-border);
}

.cs-mini-cart-product:last-child {
    border-bottom: 0;
}

.cs-mini-cart-product__image-link {
    display: block;

    width: 92px;
    height: 92px;

    overflow: hidden;

    background: #f7f5f2;
}

.cs-mini-cart-product__image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.cs-mini-cart-product__content {
    min-width: 0;

    display: flex;
    flex-direction: column;

    justify-content: space-between;
}

.cs-mini-cart-product__top {
    display: flex;

    gap: 8px;

    align-items: flex-start;
    justify-content: space-between;
}

.cs-mini-cart-product__name {
    color: var(--cs-text);

    font-size: 12px;
    font-weight: 500;

    line-height: 1.3;

    text-decoration: none;
    text-transform: uppercase;
}

.cs-mini-cart-product__name:hover {
    color: var(--cs-brown);
}

.cs-mini-cart-product__remove {
    flex:
        0
        0
        26px;

    width: 26px;
    height: 26px;

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

    color: var(--cs-text-muted);

    text-decoration: none;
}

.cs-mini-cart-product__remove:hover {
    color: var(--cs-brown);
}

.cs-mini-cart-product__remove
.material-icons {
    font-size: 17px;
}

.cs-mini-cart-product__attributes {
    display: flex;
    flex-direction: column;

    gap: 2px;

    margin-top: 5px;

    color: var(--cs-text-muted);

    font-size: 10px;
    line-height: 1.35;
}

.cs-mini-cart-product__attribute
strong {
    color: var(--cs-text);

    font-weight: 500;
}

.cs-mini-cart-product__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-top: 8px;
}

.cs-mini-cart-product__quantity {
    color: var(--cs-text-muted);

    font-size: 10px;
}

.cs-mini-cart-product__price {
    color: var(--cs-text);

    font-size: 13px;
    font-weight: 500;
}

.cs-mini-cart__empty {
    min-height: 180px;

    display: flex;
    flex-direction: column;

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

    gap: 8px;

    padding: 30px;

    color: var(--cs-text-muted);

    text-align: center;
}

.cs-mini-cart__empty
.material-icons {
    font-size: 30px;
}

.cs-mini-cart__empty p {
    margin: 0;

    font-size: 12px;
}

.cs-mini-cart__footer {
    padding:
        18px;

    background:
        var(--cs-brown);

    color: #ffffff;
}

.cs-mini-cart__summary {
    padding-bottom: 15px;
}

.cs-mini-cart__summary-line {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    color: #ffffff;

    font-size: 13px;
}

.cs-mini-cart__summary-line
strong {
    font-size: 15px;
    font-weight: 500;
}

.cs-mini-cart__summary-line--secondary {
    margin-top: 7px;

    color:
        rgba(
            255,
            255,
            255,
            0.72
        );

    font-size: 10px;
}

.cs-mini-cart__actions {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 8px;
}

.cs-mini-cart__cart-link,
.cs-mini-cart__checkout {
    min-height: 42px;

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

    padding:
        9px
        12px;

    border-radius: 0;

    font-size: 10px;
    font-weight: 500;

    text-align: center;
    text-transform: uppercase;
}

.cs-mini-cart__cart-link {
    border:
        1px solid
        rgba(
            255,
            255,
            255,
            0.7
        );

    background: transparent;

    color: #ffffff;
}

.cs-mini-cart__cart-link:hover {
    border-color: #ffffff;

    background: #ffffff;

    color: var(--cs-brown);
}

.cs-mini-cart__checkout {
    border:
        1px solid
        var(--cs-beige);

    background:
        var(--cs-beige);

    color: var(--cs-brown);
}

.cs-mini-cart__checkout:hover {
    border-color: #ffffff;

    background: #ffffff;

    color: var(--cs-brown);
}

@media (max-width: 767.98px) {

    

    .cs-mini-cart__panel {
        position: fixed;

        top: var(
            --cs-mobile-header-height,
            64px
        );

        left: 10px;
        right: 10px;

        width: auto;
        max-width: none;

        max-height:
            calc(
                100dvh
                - 74px
            );
    }


    .cs-mini-cart__panel::before {
        display: none;
    }


    .cs-mini-cart__panel-inner {
        max-height:
            calc(
                100dvh
                - 74px
            );

        display: flex;
        flex-direction: column;
    }


    .cs-mini-cart__body {
        min-height: 0;
    }


    .cs-mini-cart__products {
        max-height: none;

        flex: 1 1 auto;
    }


    .cs-mini-cart-product {
        grid-template-columns:
            80px
            minmax(0, 1fr);

        gap: 12px;

        padding:
            13px
            14px;
    }


    .cs-mini-cart-product__image-link {
        width: 80px;
        height: 80px;
    }


    .cs-mini-cart__footer {
        flex:
            0
            0
            auto;

        padding: 14px;
    }

}
