:root {
    --main-hsl-color:  #00335b;
    --allocation-hsl-color: #2D0007;
    --gray-hsl-color: #D9CFCF;
    --bk-faq: rgba(217, 207, 207, .3);
    --bk-hsl-txt: rgba(217, 207, 207, .42);
}

.color-loyalty{
    color: var(--main-hsl-color);
}

#container-hs_loyalty-solde{
    display: none;
    justify-content: flex-start;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    width: min-content;

    a{
        color: #fff;
    }

    div.hs_loyalty-solde{
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        gap: 8px;

        span.badge-hs_loyalty{
            border-radius: 5px;
            padding: 4px 8px;

            color: #fff;
            display: flex;
            justify-content: space-evenly;
            align-items: center;
            gap: 5px;
            font-size: 14px;
    
            &.badge-hs_loyalty-allocation{
                background-color: var(--allocation-hsl-color);
            }
            
            &.badge-hs_loyalty-loyaltie{
                background-color: var(--main-hsl-color);
            }
            
    
            img{
                width: 25px;
                padding: 3px;
            }

            .hover_show_hs_loyalty{
                display: block;
            }

            &:hover .hover_show_hs_loyalty{
                display: block;
            }
        }    
    }
    div.hs_loyalty-solde-title{
        display: none;
        flex-basis: 100%;
        min-width: 150px;
    }

}

#my-account{
    .link-item{
        i#account-hsl-ico-allocation{
            background-size: 32px !important;
        }
        &:hover{
            i#account-hsl-ico-allocation{
                background: url(/modules/hs_cluballocation/views/img//icons/alloc-s-blanc.svg) !important;
            }
            i#account-hsl-ico-fidelite{
                background: url(/modules/hs_cluballocation/views/img//icons/fidelite-s-blanc.svg) !important;
            }
        }
    }
}

#content.page-cms-8, #content.page-cms-7{
    border-top: 1px solid #D9CFCF;
}

#page-faq-hsl-container{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5%;
    padding-bottom: 1.5rem;
    #page-logo-hsl{
        background-color: var(--main-hsl-color);
        flex-basis: 20%;
        padding: 20px;
        border-radius: 10px;

        &.allocation{
            background-color: var(--allocation-hsl-color);
        }

        img{
            width: 100%;
        }
    }
    #page-txt-hsl{
        display: flex;
        justify-content: flex-start;
        align-items: center;
        flex-basis: 60%;
        flex-wrap: wrap;

        p{
            width: 80%;
        }

        #see_more_button_hsl{
            background-color: var(--main-hsl-color);
            color: #fff;
            border-radius: 5px;
            width: 30%;
            text-align: center;
            padding: 10px 5px;
            
            &.allocation{
                background-color: var(--allocation-hsl-color);
            }
        }
    }
}

#faq-hsl-container{
    background-color: var(--bk-faq);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    .faq-container{
        width: 55%;
        .faq-question{
            color: var(--allocation-hsl-color);
            cursor: pointer;
            border-top: 1px solid #fff;
            padding: 15px 0;
            position: relative;
            margin: 0;
            font-weight: 600;
        }

        .faq-question::after {
            content: url("../img/icons/down-arrow.svg");
            position: absolute;
            right: 0;
            transition: transform 0.3s ease;
        }

        .faq-item.active .faq-question::after {
            transform: rotate(180deg);
        }
        
        .faq-answer{
            display: none;
        }

        .faq-item.active .faq-answer {
            display: block;
        }
    }
}

@media (min-width: 991px){
    #header .cartbox{
        min-height: 100px;
    }
}

@media (max-width: 991px){
    #content.page-cms-8, #content.page-cms-7 {
        padding: 15px 0 0 0;
    }
    div.hs_loyalty-solde-title{
        display: none;
    }

    #page-faq-hsl-container{
        flex-direction: column;
        gap: 15px;
        #page-logo-hsl{
            width: 50%;
        }
        #page-txt-hsl {
            p{
                width: 100%;
            }
        }
    }

    #faq-hsl-container {
        padding: 30px 15px;
         .faq-container {
          width: 100%;
          .faq-question {
            padding-right: 25px;
          }
        }
    }
}

@media (max-width: 768px){
    #mobile-solde-hs_loyalty{
        display: flex !important;
        justify-content: center;
        padding: 15px 0;
    }
    
    #container-hs_loyalty-solde{
        .hover_show_hs_loyalty{
            display: block;
        }
    }

    #container-hs_loyalty-solde.show_mobile{
        display: flex
    }
}

@media (min-width: 768px){
    #container-hs_loyalty-solde{
        display: flex;
    }
}

@media (max-width: 1320px){
    #page-faq-hsl-container {
        #page-logo-hsl {
            flex-basis: 30%;
        }
        #page-txt-hsl{
            #see_more_button_hsl{
                width: 100%;
            }
        }
    }
}