/* general */
#main-panier {
    display: flex;
    flex-direction: column;
}

#main-panier .panier_side {
    position: relative;
    display: flex;
}

#main-panier .panier_side .main_panier_img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

#main-panier .maxWidth {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.error {
    color: red;
    font-family: var(--police-worksans-bold);
}

/* general */



#main-panier .maxWidth .main_title {
    font-size: 3.5rem;
}

@media screen and (max-width: 720px) {
    #main-panier .maxWidth .main_title {
        font-size: 2.5rem;
    }
}


#main-panier .maxWidth .avancee {
    margin-top: 4rem;
    display: flex;
    gap: 1rem;
    width: 95%;
    align-items: flex-start;
}

#main-panier .maxWidth .avancee .logo {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 500px;
    align-items: center;
}

#main-panier .maxWidth .avancee .logo img {
    height: 4rem;
    margin-bottom: 10px;
}

#main-panier .maxWidth .avancee .logo .logo_text {
    color: var(--couleur-4);
    font-family: var(--police-worksans-bold);
    bottom: -1rem;
    left: 50%;
    font-size: 1rem;
    text-align: center;
}

#main-panier .maxWidth .avancee .logo.actif .logo_text {
    color: var(--couleur-1);
}

#main-panier .maxWidth .avancee .ligne {
    width: 100%;
    height: 0.3rem;
    background-color: var(--couleur-24);
    margin-top: 40px;
}

#main-panier .maxWidth .avancee .ligne.actif {
    background-color: var(--couleur-26);
}

@media screen and (max-width: 720px) {
    #main-panier .maxWidth .avancee .logo img {
        width: 7rem;
        height: 3rem;
    }

    #main-panier .maxWidth .avancee .logo .logo_text {
        font-size: 0.75rem;
        bottom: unset;
        text-wrap: unset;
        max-width: 5rem;
    }
}

/* avancee de la commande (3 logos en haut) */


/* bloc offre */
#main-panier .maxWidth .longue_m {
    position: relative;
    background-color: var(--couleur-24);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin-top: 4rem;
}

#main-panier .maxWidth .longue_m .logo_important {
    height: 1.8rem;
}

#main-panier .maxWidth .longue_m .text a {
    font-family: var(--police-worksans-bold);
    text-decoration: underline;
    cursor: pointer;
}

#main-panier .maxWidth .longue_m .remove_offre {
    position: absolute;
    right: 1rem;
    cursor: pointer;
    width: 0.8rem;
}
#main-panier .maxWidth .longue_m.modif_reussi{
    border: 1px solid var(--couleur-1);
    cursor: pointer;
}
/* bloc offre */




#main-panier .maxWidth .a_jour_div {
    margin-top: 3rem;
    width: 100%;
    display: flex;
}

#main-panier .maxWidth .left_and_right {
    margin-top: .5rem;
    width: 100%;
    display: flex;
    gap: 4rem;
    position: relative;
}

#main-panier .maxWidth .left_and_right .left {
    width: 65%;
}

#main-panier .maxWidth .left_and_right .right {
    width: 35%;
}

@media screen and (max-width: 1300px) {
    #main-panier .maxWidth .left_and_right {
        flex-direction: column;
        gap: 3rem;
    }

    #main-panier .maxWidth .left_and_right .left,
    #main-panier .maxWidth .left_and_right .right {
        width: 100%;
    }
}



#main-panier .maxWidth .a_jour_div .btn_m_a_jour {
    padding: .7rem 1rem;
    border-radius: 5px;
    border: 1px solid var(--couleur-25);
    background-color: var(--couleur-10);
    color: var(--couleur-9);
    font-family: var(--police-worksans-bold);
    cursor: pointer;
    transition: all .2s;
}

#main-panier .maxWidth .a_jour_div .btn_m_a_jour:hover {
    color: var(--couleur-25);
}

#main-panier .maxWidth .a_jour_div .btn_m_a_jour.inactive {
    background-color: var(--couleur-18);
    border: 1px solid var(--couleur-8);
    color: var(--couleur-8);
    cursor: not-allowed;
}

#main-panier .maxWidth .a_jour_div .btn_m_a_jour.inactive:hover {
    color: var(--couleur-8);
}


#main-panier .maxWidth .left_and_right .loader {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 1;
    background-color: #ffe6cc9e;
    border-radius: 5px;
    cursor: progress;
}

#main-panier .maxWidth .left_and_right .loader.active {
    display: flex;
}


/* left side (products) */
#main-panier .maxWidth .left_and_right .left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#main-panier .maxWidth .left_and_right .left .product {
    width: 100%;
    padding: 1.5rem;
    border-radius: 5px;
    background-color: var(--couleur-10);
    border: 1px solid var(--couleur-24);
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
}

/* left (product_left) */
#main-panier .maxWidth .left_and_right .left .product .leftSide {
    display: flex;
    gap: 1.5rem;
}

#main-panier .maxWidth .left_and_right .left .product .leftSide .product_img {
    height: 6rem;
    width: 6rem;
    object-fit: cover;
    border-radius: 2px;
}

#main-panier .maxWidth .left_and_right .left .product .leftSide .texts {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

#main-panier .maxWidth .left_and_right .left .product .leftSide .texts h2 span {
    font-family: var(--police-worksans-bold);
    font-size: 1.3rem;
    display: block;
    text-transform: initial;
    font-weight: initial;
}

#main-panier .maxWidth .left_and_right .left .product .leftSide .texts .bottom_text {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}


#main-panier .maxWidth .left_and_right .left .product .leftSide .texts .bottom_text.offert {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
}

#main-panier .maxWidth .left_and_right .left .product .leftSide .texts .bottom_text.offert .prix_quantity {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}


#main-panier .maxWidth .left_and_right .left .product .leftSide .texts .bottom_text .prix_unitaire {
    color: var(--couleur-8);
    font-size: .85rem;
}

#main-panier .maxWidth .left_and_right .left .product .leftSide .texts .bottom_text .quantityDiv {
    display: flex;
    height: 2.5rem;
}

#main-panier .maxWidth .left_and_right .left .product .leftSide .texts .bottom_text .quantityDiv input {
    border: none;
    outline: none;
    border-top: 1px solid var(--couleur-17);
    border-bottom: 1px solid var(--couleur-17);
    background-color: var(--couleur-10);
    font-family: var(--police-worksans-bold);
    height: 100%;
    width: 2rem;
    text-align: center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#main-panier .maxWidth .left_and_right .left .product .leftSide .texts .bottom_text .quantityDiv input::-webkit-outer-spin-button,
#main-panier .maxWidth .left_and_right .left .product .leftSide .texts .bottom_text .quantityDiv input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0
}

#main-panier .maxWidth .left_and_right .left .product .leftSide .texts .bottom_text .quantityDiv p {
    height: 100%;
    width: 2.5rem;
    border: 1px solid var(--couleur-17);
    background-color: var(--couleur-10);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none
}

#main-panier .maxWidth .left_and_right .left .product .leftSide .texts .bottom_text .quantityDiv p.nop {
    color: var(--couleur-8);
    cursor: not-allowed;
}

#main-panier .maxWidth .left_and_right .left .product .leftSide .texts .bottom_text .quantityDiv p.quantity_less,
#main-panier .maxWidth .left_and_right .left .product .leftSide .texts .bottom_text .quantityDiv p.quantity_fake_less {
    border-right: none;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px
}

#main-panier .maxWidth .left_and_right .left .product .leftSide .texts .bottom_text .quantityDiv p.quantity_more,
#main-panier .maxWidth .left_and_right .left .product .leftSide .texts .bottom_text .quantityDiv p.quantity_fake_more {
    border-left: none;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px
}

#main-panier .maxWidth .left_and_right .left .product .leftSide .supprimer {
    display: none !important;
    height: 2rem;
    width: 2rem;
    border-radius: 5px;
    background-color: var(--couleur-17);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#main-panier .maxWidth .left_and_right .left .product .leftSide .texts .bottom_text .desc {
    font-size: .8rem;
}

/* left (product_left) */

/* right (product_right) */
#main-panier .maxWidth .left_and_right .left .product .rightSide {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    text-align: right;
    min-width: fit-content;
}

#main-panier .maxWidth .left_and_right .left .product .rightSide .topSide {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

#main-panier .maxWidth .left_and_right .left .product .rightSide .topSide p.favoris {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: .1rem;
    font-size: .8rem;
    min-width: fit-content;
}

#main-panier .maxWidth .left_and_right .left .product .rightSide .topSide p.favoris img {
    height: 1.2rem;
}

#main-panier .maxWidth .left_and_right .left .product .rightSide .topSide p.supprimer {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: .3rem;
    color: var(--couleur-8);
    font-size: .8rem;
}

#main-panier .maxWidth .left_and_right .left .product .rightSide .topSide p.supprimer img {
    height: .7rem;
}

#main-panier .maxWidth .left_and_right .left .product .rightSide .bottomSide p {
    font-family: var(--police-worksans-bold);
    font-size: 1.5rem;
}

#main-panier .maxWidth .left_and_right .left .product .rightSide .bottomSide p.marron {
    color: var(--couleur-26);
}

/* right (product_right) */
@media screen and (max-width: 720px) {
    #main-panier .maxWidth .left_and_right .left .product .rightSide .topSide p.favoris {
        font-size: 0;
    }

    #main-panier .maxWidth .left_and_right .left .product .rightSide .topSide p.favoris img {
        height: 1.5rem;
    }

    #main-panier .maxWidth .left_and_right .left .product .rightSide .topSide p.supprimer,
    #main-panier .maxWidth .left_and_right .left .product .leftSide .texts .bottom_text .prix_unite {
        display: none;
    }

    #main-panier .maxWidth .left_and_right .left .product .leftSide .supprimer {
        display: flex !important;
    }

    #main-panier .maxWidth .left_and_right .left .product .leftSide .texts h2 span,
    #main-panier .maxWidth .left_and_right .left .product .rightSide .bottomSide p {
        font-size: 1rem;
    }

    #main-panier .maxWidth .left_and_right .left .product .leftSide .texts .bottom_text .quantityDiv {
        height: 2rem;
    }

    #main-panier .maxWidth .left_and_right .left .product .leftSide .texts .bottom_text .quantityDiv p {
        width: 2rem;
    }
}

@media screen and (max-width: 500px) {
    #main-panier .maxWidth .left_and_right .left .product .rightSide{
        /* height: 120%; */
        flex-direction: row;
        width: 100%;
    }

    #main-panier .maxWidth .left_and_right .left .product {
        flex-wrap: wrap-reverse;
    }

    #main-panier .maxWidth .left_and_right .left .product .rightSide .topSide p.favoris {
        text-align: left;
    }

    #main-panier .maxWidth .left_and_right .left .product .leftSide .product_img {
        height: 3rem;
        width: 3rem;
        min-width: 3rem;
    }
    #main-panier .maxWidth .left_and_right .left .product .leftSide,
    #main-panier .maxWidth .left_and_right .left .product .leftSide .texts .bottom_text {
        gap: .5rem;
    }

    #main-panier .maxWidth .left_and_right .left .product .leftSide .texts h2 span,
    #main-panier .maxWidth .left_and_right .left .product .rightSide .bottomSide p {
        font-size: .8rem;
    }

    #main-panier .maxWidth .left_and_right .left .product .leftSide .texts .bottom_text .quantityDiv p {
        width: 1.5rem;
    }

    #main-panier .maxWidth .left_and_right .left .product .leftSide .texts .bottom_text .quantityDiv input {
        font-size: .8rem;
    }

    #main-panier .maxWidth .left_and_right .left .product .rightSide .bottomSide p {
        font-size: .9rem;
    }

    #main-panier .maxWidth .left_and_right .left .product .leftSide .texts .bottom_text .desc {
        font-size: .65rem;
    }
}

/* left side (products) */


/* right side (echantillons, coupons, total panier) */

/* coupons */
#main-panier .maxWidth .left_and_right .right .coupon_div {
    width: 100%;
    border: 1px solid var(--couleur-7);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--couleur-10);
    border-radius: 5px;
    padding: 1.5rem;
    /* position: relative; */
}

#main-panier .maxWidth .left_and_right .right .coupon_div h2 {
    font-size: 1.8rem;
}

#main-panier .maxWidth .left_and_right .right .coupon_div .input {
    position: relative;
    display: flex;
    height: 3rem;
    width: 100%;
}

#main-panier .maxWidth .left_and_right .right .coupon_div .input input {
    height: 100%;
    width: 100%;
    border: none;
    outline: none;
    background-color: #FAFAFA;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    padding: 0 3rem 0 1rem;
}

#main-panier .maxWidth .left_and_right .right .coupon_div .blue {
    background-color: var(--couleur-7);
    height: 100%;
    width: 4rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--police-worksans-bold);
    color: var(--couleur-10);
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    cursor: pointer;
    transition: background-color .2s;
}

#main-panier .maxWidth .left_and_right .right .coupon_div .blue:hover {
    background-color: var(--couleur-27);
}

#main-panier .maxWidth .left_and_right .coupons {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: .5rem;
}

#main-panier .maxWidth .left_and_right .coupons .le_coupon {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

#main-panier .maxWidth .left_and_right .coupons .le_coupon .coupon {
    width: fit-content;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    background-color: #EFF7FF;
    border: 1px solid var(--couleur-7);
    padding: 0.1rem 0.5rem;
    cursor: pointer;
}

#main-panier .maxWidth .left_and_right .coupons .prix_en_moins {
    font-family: var(--police-worksans-bold);
}

/* coupons */

/* points fid */
#main-panier .maxWidth .left_and_right .right .points_fid {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0 .3rem;
}

#main-panier .maxWidth .left_and_right .right .points_fid .text {
    display: flex;
    flex-wrap: wrap;
    gap: 0 .3rem;
    font-family: var(--police-worksans-regular);
    line-height: 20px;
}

#main-panier .maxWidth .left_and_right .right .points_fid .text a {
    text-decoration: underline;
    color: var(--couleur-1);
    font-family: var(--police-worksans-bold);
}

#main-panier .maxWidth .left_and_right .right .points_fid .aide {
    position: relative;
    height: 1rem;
    width: 1rem;
}

#main-panier .maxWidth .left_and_right .right .points_fid .aide .aide_button {
    border-radius: 50%;
    background-color: var(--couleur-8);
    color: var(--couleur-10);
    height: 1rem;
    width: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    font-size: .85rem;
    font-family: var(--police-worksans-semibold);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

#main-panier .maxWidth .left_and_right .right .points_fid .aide .aide_popup {
    display: none;
    z-index: 1;
    position: absolute;
    top: -0.5rem;
    left: 0.5rem;
    padding: 0.8rem;
    width: 20rem;
    background-color: var(--couleur-10);
    border: 1px solid var(--couleur-1);
    border-radius: 5px;
    color: var(--couleur-8);
    font-size: .85rem;
    position: relative;
}

#main-panier .maxWidth .left_and_right .right .points_fid .aide .aide_button:hover+.aide_popup {
    display: block;
}

#main-panier .maxWidth .left_and_right .right .points_fid .aide .aide_popup:hover {
    display: block;
}

/* points fid */

/* total panier */
#main-panier .maxWidth .left_and_right .right .total_panier {
    margin-top: 2rem;
    width: 100%;
    border: 1px solid var(--couleur-1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--couleur-10);
    border-radius: 5px;
    padding: 1.5rem;
    position: relative;
}

#main-panier .maxWidth .left_and_right .right .total_panier h2 {
    font-size: 1.8rem;
}

#main-panier .maxWidth .left_and_right .right .total_panier .sous_total,
#main-panier .maxWidth .left_and_right .right .total_panier .total {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#main-panier .maxWidth .left_and_right .right .total_panier .sous_total .marron,
#main-panier .maxWidth .left_and_right .right .total_panier .total .marron {
    font-family: var(--police-worksans-bold);
    font-size: 1.1rem;
}


#main-panier .maxWidth .left_and_right .right .total_panier .total .right{
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
#main-panier .maxWidth .left_and_right .right .total_panier .total .right .gris{
    font-size: .8rem;
    color: var(--couleur-8);
}
#main-panier .maxWidth .left_and_right .right .total_panier .total .right .gris span{
    color: inherit;
    font-size: inherit;
}


#main-panier .maxWidth .left_and_right .right .commander{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}


/* total panier */

@media screen and (max-width: 1000px) {
    #main-panier .maxWidth .left_and_right .right .points_fid .aide .aide_popup {
        left: unset;
        right: .5rem;
        position: absolute;
    }
}

@media screen and (max-width: 500px) {

    #main-panier .maxWidth .left_and_right .right .coupon_div h2,
    #main-panier .maxWidth .left_and_right .right .total_panier h2 {
        font-size: 1.3rem;
        text-align: center;
    }

    #main-panier .maxWidth .left_and_right .right .points_fid .text {
        justify-content: center;
        text-align: center;
    }

    #main-panier .maxWidth .left_and_right .right .points_fid {
        font-size: .9rem;
    }

    #main-panier .maxWidth .left_and_right .right .points_fid * {
        font-size: inherit;
    }
}

/* right side (echantillons, coupons, total panier) */