

.cart-hsl-card{

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-top: 1px solid var(--gray-hsl-color);
    padding: 15px 0;

    p{
        text-align: center;
    }

    h3{
        color: var(--allocation-hsl-color);
        font-weight: bold;
        font-size: 15px;
        text-align: center;
    }

    #input-slider-hsl{
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;

        span{
            font-weight: bold;
        }

        .hsl-points-slider {
            -webkit-appearance: none;
            width: 100%;
            height: 7px;
            border-radius: 5px;  
            background: #d3d3d3;
            outline: none;
            opacity: 1;
            -webkit-transition: .2s;
            transition: opacity .2s;
            color: var(--main-hsl-color);
        }
          
        .hsl-points-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            border: none;
            width: 15px;
            height: 15px;
            border-radius: 50%; 
            background: var(--main-hsl-color);
            cursor: pointer;
        }
          
        .hsl-points-slider::-moz-range-thumb {
            width: 15px;
            height: 15px;
            border-radius: 50%;
            background: var(--main-hsl-color);
            cursor: pointer;
        }

        .hsl-points-slider::-moz-range-progress {
            height: 7px;
            border-radius: 5px;
            background-color: var(--main-hsl-color); 
        }
    }

    #input-selecteur-hsl{
        width: 50%;
        margin: 15px 0;
        border: 1px solid var(--gray-hsl-color);
        display: flex;
        justify-content: center;
        align-items: center;

        #hsl-points-input{
            background: transparent;
            border: none;
            margin: 0;
            padding: 0;
            flex-basis: 65%;
            text-align: center;

            &:focus-visible{
                border: none;
                outline: none;
            }
        }

        span.hsl-points-label{
            background-color: var(--gray-hsl-color);
            flex-basis: 35%;
            text-align: center;
            padding: 4px 0;
        }
    }
}

#cart-hsl-gains-container {
    width: 100%;
    border: none;
    padding: 15px;
    p.gains-title {
        text-align: center;
        color: var(--main-hsl-color);
        font-weight: 600;
        font-size: 18px;
        line-height: 1.1;
        
        small {
            font-size: 13px;
            margin-top: 7px;
            display: block;
        }
    }
    .cart-gains-container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
        margin-bottom: 15px;
        padding-bottom: 15px;
        p {
            margin-bottom: 0;
        }
        .cart-gains {
            display: flex;
            align-items: center;
            gap: 8px;
            img {
                width: 40px;
                height: 40px;
            }
            p.cart-gains-points {
                font-weight: 600;
                margin-bottom: -7px;
                text-wrap: nowrap;
                font-size: 1em;
                line-height: 1.5em;
            }
            &#cart-gains-privilege p {
                color: var(--allocation-hsl-color);
            }
            &#cart-gains-loyalty p, &#cart-gains-loyalty small{
                color: var(--main-hsl-color);
            }
        }
        
    }
    #cart-gains-club-fidelity {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        .gains-formula-container {
            display: flex;
            flex-direction: row;
            gap: 15px;
            p {
                margin: 0;
            }
        }
        p {
            text-align: center;            
            color: var(--main-hsl-color);
            line-height: 1;
            &.center {
              margin-bottom: 5px;  
            }
            &:last-child {
                margin-bottom: 0;
            }
        }
    }
}
@media(min-width: 1410px) {
    #cart-hsl-gains-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        border-bottom: none;
        .cart-gains-container {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
            font-size: 1em;
        }
        .container-left-cart-hsl{
            display: flex;
            gap: 15px;
            flex-wrap: nowrap;
        }
        #cart-gains-club-fidelity .gains-formula-container {
            flex-direction: column;
            gap: 0;
        }
        p.gains-title:not(.center){
            text-align: left;
            flex-basis: 69%;
            max-width: none;
        }
        p.gains-title, p.gains-title.center{
            margin-bottom: 0;
        }
    }
}
