.fd_customizable_pack-loader {
    display: block;
    width: 24px;
    height: 24px;
    border: 3px solid #FFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin: 2px auto;
}
.needHelpContainer {
    position: sticky;
    left: 0;
    top: 20%;
    transform: rotate(90deg) translateY(103px);
    background: #183157;
    color: white;
    padding: 6px 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-radius: 4px 30px 0 0;
    cursor: pointer;
    z-index: 10;
    width: 130px;
    transform-origin: right top;
    font: normal normal normal 14px / 17px Karla;
    text-shadow: 0 0 5px black;

    @media (max-width: 992px) {
        top: 0;
        transform: unset;
        border-radius: 0 0 30px 0;
    }
}
.CPP-custom-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}
.fd_customizable_pack-container {
    margin-top: 15px;

    .addToCartOverlay {
        position: fixed;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 999;
        background-color: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);

        &.hide {
            display: none;
        }

        .addToCartText {
            color: white;
            margin: 12px 0;
            font-size: 22px;
            font-weight: bold;
        }
    }

    #fd_customizable_pack-alert {
        color: #721c24;
        background: #f8d7d1;
        margin: 10px 28px;

        @media (max-width: 768px) {
            margin: 10px 0;
        }
    }

    .customDisplayAvailability {
        padding-left: 30px;
        display: flex;
        padding-bottom: 20px;
        border-bottom: 1px solid #DFDFDF;

        &.hide {
            display: none;
        }

        @media (max-width: 768px) {
            justify-content: center;
            padding-left: 0;
            border-bottom: unset;
        }

        &.bottom-margin {
            margin-bottom: 20px;
        }
    }

    /* Duplicata du prix du produit */
    .actual-product-price-container {
        border-bottom: 1px solid #DFDFDF;
        padding: 0 26px;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 60px;
        flex-direction: column;
        margin-bottom: 20px;

        &.hide {
            display: none;
        }

        .product-prices.js-product-prices {
            margin-bottom: 0 !important; /* obliger car mb-3*/

            .price.price--lg {
                font: normal normal bold 24px/29px Lato;
            }
            .price-ht.price--xs {
                font: normal normal normal 16px/19px Karla;
            }
        }
    }

    .fd_pack-closeButton {
        display: block;
        position: absolute;
        right: 15px;
        top: 15px;
        border-radius: 50%;
        padding: .5em;
        width: 30px;
        height: 30px;
        border: 2px solid transparent;
        color: white;
        z-index: 18;
        cursor: pointer;
        transition: all 0.2s linear;

        &:hover {
            /*transform: rotate(90deg);*/
            &:after,&:before {
                background-color: #CC2028;
            }
        }

        &:before {
            content: " ";
            position: absolute;
            display: block;
            background-color: black;
            width: 2px;
            left: 12px;
            top: 5px;
            bottom: 5px;
            transform: rotate(45deg);
        }
        &:after {
            content: " ";
            position: absolute;
            display: block;
            background-color: black;
            height: 2px;
            top: 12px;
            left: 5px;
            right: 5px;
            transform: rotate(45deg);
        }

    }

    /* Zones des buttons pour l'utilisateur */
    .packCreationButtonContainer {
        display: flex;
        flex-direction: column;
        padding: 0 28px;
        gap: 12px;
        margin-bottom: 25px;

        &.hide {
            display: none;
        }

        @media (max-width: 768px) {
            padding: unset;
        }

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

            &.hide {
                display: none;
            }
        }

        .updatePack, .createPack {
            background-color: #183157;
            border-radius: 4px;
            color: white;
            padding: 16px 25px;
            text-align: start;

            .button-text {
                font: normal normal bold 16px/19px Karla;
            }

            &:hover, &:focus-visible {
                background-color: #CC2028;
            }
        }

        .resetPack {
            background-color: #F2F2F2;
            border-radius: 4px;
            color: #212529;
            padding: 10px 25px;
            text-align: start;

            .button-text {
                font: normal normal normal 16px/19px Karla;
            }

            &:hover {
                background-color: #183157;
                color: white;

                svg {
                    filter: brightness(15); /* change l'icone en blanc */
                }
            }
        }

    }
    .composant {
        display: flex;
        flex-direction: column;
        background-color: white;
        margin-bottom: 25px;

        &.composant-resumer {
            padding: 0 28px;

            @media (max-width: 768px) {
                padding: unset;
            }

            .composant-header {
                background-color: unset;
                border-radius: unset;
                padding: unset;
            }

            &.hide {
                display: none;
            }
        }

        ul.flag-page-product {
            bottom: 0;
            transform: translateY(-18px);
            .product-flags__flag {
                list-style: none;
                top: 0 !important;
                right: 0 !important;
                font-size: 12px;
                left: 0;
                padding: 2px 7px;
                border-radius: 0 4px 4px 0 !important;
                transform: unset;

                &:after {
                    content: none;
                }
            }
        }


        .composant-header {
            background-color: #DDDFE7;
            border-radius: 4px 4px 0 0;
            padding: 12px 24px;

            &.missing-choice {
                background-color: #F8D7DA;
                animation: shake 0.3s ease-in-out 2;
            }

            .header-container {
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 5px;

                .title {
                    display: flex;
                    align-items: center;
                    gap: 5px;

                    .mandatory-indicator {
                        font-size: 22px;
                        color: red;
                        font-weight: bold;
                        display: flex;
                        height: 14px;
                        flex-direction: column-reverse;
                        justify-content: center;
                    }

                    .mandatory-text {
                        font-size: 14px;
                        font-family: 'Karla', sans-serif;
                        font-weight: bold;
                        color: #CC2028;
                        margin-left: 8px;
                    }
                }

                h5 {
                    margin: 0;
                    color: #212529;
                    font: normal normal bold 14px/17px Karla;
                    text-transform: uppercase;

                    &.resume-title {
                        font: normal normal bold 12px / 14px Karla;
                    }
                }

                .end-header-wrapper {
                    display: flex;
                    gap: 25px;
                }

                .chevron {
                    rotate: 45deg;
                    transition: rotate 0.3s linear;

                    &:after {
                        content: "";
                        width: 8px;
                        height: 8px;
                        display: block;
                        border: 1px solid black;
                        border-top-color: transparent;
                        border-left-color: transparent;
                    }
                }
            }

            &.active {
                .chevron {
                    rotate: 225deg;
                }
            }
        }
        .composant-body:not(.resumer) {
            padding: 13px 25px 20px 35px;
            /*background-color: #F2F2F2;*/
            display: flex;
            flex-wrap: wrap;
            max-height: fit-content;
            gap: 33px;
            transition: max-height 0.3s ease-out;

            @media (max-width: 768px) {
                padding: 29px 5px;
            }

            &.collapse-content {
                /*max-height: 0;*/
                overflow: hidden;

                &.hide {
                    padding: 0;
                }
            }

            .more-infos-product {
                font: normal normal normal 14px / 17px Karla;
                text-align: right;
                padding-right: 25px;
                position: relative;
                color: #78757A;
                margin-bottom: 4px;
                cursor: help;

                @media (max-width: 768px) {
                    margin: 10px;
                }

                .help-icon {
                    position: absolute;
                    color: white;
                    background-color: #183157;
                    border: 1px solid #183157;
                    width: 18px;
                    height: 18px;
                    text-align: center;
                    border-radius: 50%;
                    top: 0;
                    right: 0;
                }

                &:hover {
                    color: #272727;
                    .help-icon {
                        color: #183157;
                        background-color: white;
                    }
                }
            }
            .goto-link-product {
                position: absolute;
                color: #78757A;
                text-align: center;
                text-decoration: underline;
                bottom: 0;
                right: 0;
                transform: translate(-16px, -12px);
                z-index: 2;

                &.dk-display {
                    @media (max-width: 768px) {
                        display: none;
                    }
                }

                &.mb-display {
                    display: none;
                    @media (max-width: 768px) {
                        display: block;
                        bottom: 0;
                        left: 0;
                        right: unset;
                        transform: translate(0, -15%);
                    }
                }

                &:hover {
                    color: #c8a301;
                }
            }

            .composants-product {
                width: 100%;
                display: grid;
                grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
                gap: 35px;
                grid-auto-flow: dense;

                @media(max-width: 768px) {
                    grid-template-columns: unset;
                    gap: 20px;
                }
            }

            .composant-product-infos {
                display: flex;
                width: 100%;
                flex-direction: column;
                justify-content: space-between;
                padding-bottom: 20px;
                position: relative;

                @media (max-width: 768px) {
                    padding-bottom: 25px;
                }

                .composant-price-qty-wrapper {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;

                    .composant-product-price-container {
                        .price.price--sm {
                            font: normal normal bold 18px/22px Karla;
                            display: flex;
                            align-items: center;

                            @media (max-width: 768px) {
                                font: normal normal bold 16px/19px Karla;
                            }

                            .exposant {
                                font-size: 12px;
                                margin-top: -10px;
                                margin-left: 5px;
                            }
                        }
                        .price-ht.price--xs, .price.price--regular:not(.hide) {
                            font: normal normal normal 14px/17px Karla;
                            display: flex;
                            align-items: center;

                            .exposant {
                                font-size: 10px;
                                margin-top: -10px;
                                margin-left: 5px;
                            }
                        }
                    }
                }

                .composant-qty-container {
                    padding: 0;
                    min-width: 114px;

                    @media (max-width: 768px) {
                        min-width: 90px;
                    }

                    .fd_customizable_pack_qty_selector {
                        display: block;
                        border: 1px solid #DFDFDF;
                        padding: 0 3px !important;
                        background-color: #ffffff;
                        height: 34px;
                        max-width: 120px;
                        border-radius: 4px;

                        .qty {
                            height: 100%;

                            .input-group-btn.disabledSelection {
                                visibility: hidden;
                                opacity: 0;
                                user-select: none;
                            }

                            .input-group-prepend {
                                .btn {
                                    border-radius: 4px 0 0 4px;
                                }
                            }
                            .input-group-append {
                                .btn {
                                    border-radius: 0 4px 4px 0;
                                }
                            }

                        }

                        .input-group {
                            justify-content: space-between;
                            height: 100%;
                        }
                    }
                }

                &.hide {
                    display: none;
                }
            }

            &.resumer {
                background-color: #FFFFFF;
            }

            .composant-product-vignette-wrapper {

                &.hide {
                    display: none;
                }

                @media (max-width: 768px) {
                    &:not(:first-of-type) {
                        border-top: 1px solid #DDDFE7;
                        padding-top: 17px;
                    }
                }

                .composant-input-wrapper {
                    background: #fafafa;
                    height: 21px;
                    border-radius: 0 0 4px 4px;
                    transition: background 0.2s linear;

                    @media (max-width: 768px) {
                        margin: 0 10px;
                        border-radius: 4px;
                    }

                    &.white-bg {
                        background-color: white;
                    }

                    .custom-checkbox {
                        display: none;
                    }

                    .checkbox-aligner {
                        display: flex;
                        align-items: center;
                        height: 16px;
                    }

                    .custom-checkbox:not(:checked) + .checkbox-label {
                        &:hover {
                            background-color: #FFD400;
                            border-color: #FFD400;
                            &::after {
                                content: "✔";
                                position: absolute;
                                top: 50%;
                                left: 50%;
                                transform: translate(-50%, -50%);
                                font-size: 10px;
                                color: white;
                                pointer-events: none;
                            }
                        }
                    }

                    .checkbox-label {
                        border: 1px solid #DFDFDF;
                        border-radius: 2px;
                        position: relative;
                        width: 14px;
                        height: 14px;
                        transition: transform 0.3s ease, background-color 0.3s ease, width 0.3s ease;
                        transform-origin: left center;
                        margin: 0 0 0 50%;
                        transform: translate(-40px, 2px);

                        &::before {
                            content: "Ajouter";
                            position: absolute;
                            top: 0;
                            font: normal normal normal 14px / 17px Karla;
                            left: 100%;
                            transform: translate(10px, -2px);
                        }
                    }

                    .custom-checkbox:checked + .checkbox-label {
                        background-color: #FFD400;
                        color: white;
                        border: none;
                        width: 46px;
                        height: 14px;
                        transform: translate(-20px, 2px);
                        border-radius: 4px;
                    }

                    .custom-checkbox:checked + .checkbox-label::before {
                        content: "✔";
                        top: 0;
                        left: 50%;
                        right: 50%;
                        transform: translate(-50%, -1px);
                        height: 14px;
                        display: block;
                        width: 14px;
                    }
                }
            }

            .composant-product-vignette-wrapper {
                &:not(.mandatory, .not_available):hover {

                    .composant-input-wrapper {
                        .custom-checkbox:not(:checked) + .checkbox-label {
                            background-color: #FFD400;
                            border-color: #FFD400;
                            &::after {
                                content: "✔";
                                position: absolute;
                                top: 50%;
                                left: 50%;
                                transform: translate(-50%, -50%);
                                font-size: 10px;
                                color: white;
                                pointer-events: none;
                            }
                        }
                    }
                }
            }

            .composant-product-vignette-container {
                display: flex;
                gap: 8px;
                color: #212529;
                /*align-items: center;*/
                flex-wrap: nowrap;
                position: relative;
                overflow: visible;
                min-height: 150px;
                border: 1px solid #DFDFDF;
                padding: 17px 15px;
                cursor: pointer;

                @media(max-width: 768px) {
                    border: 1px solid transparent;
                    padding: 17px 10px 20px 10px;
                }

                .preOrder-expeditionDate {
                    font: normal normal bold 14px / 17px Karla;
                    position: absolute;
                    bottom: 5px;

                    @media (max-width: 768px) {
                        font: normal normal bold 12px / 15px Karla;
                    }
                }

                &.not_available {
                    cursor: unset;
                    opacity: 0.8;

                    .product-data-container {
                        position: relative;
                        cursor: unset;
                    }

                }

                &.mandatory {
                    border: 1px solid #FED417;
                    cursor: unset;

                    &:after {
                        content: 'Obligatoire';
                        text-transform: uppercase;
                        width: fit-content;
                        padding: 3px 21px;
                        position: absolute;
                        bottom: 0;
                        background-color: #FED417;
                        border-radius: 11px;
                        font: normal normal bold 13px / 15px Karla;
                        right: 50%;
                        left: 50%;
                        transform: translate(-50%, 10px);
                    }
                }

                .product-data-container {
                    position: relative;
                    display: flex;
                    flex-direction: column;
                    gap: 5px;

                    .specialStockFlag {
                        position: absolute;
                        background-color: rgb(204 32 40 / 65%);
                        font: normal normal 800 13px / 13px Karla;
                        color: white;
                        width: 150%;
                        padding: 4px 0;
                        display: flex;
                        justify-content: center;
                        text-transform: uppercase;
                        top: 50%;
                        right: 50%;
                        left: 50%;
                        transform: translate(-50%, -50%) rotate(-30deg);
                        pointer-events: none;
                        min-height: 30px;
                        align-items: center;
                        z-index: 2;

                        span {
                            width: 103px;
                            text-align: center;
                            word-break: break-word;
                        }
                    }
                }

                .image-container {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    height: 105px;
                    width: 105px;
                    background: #fff;
                    border: 1px solid #DFDFDF;
                    border-radius: 4px;
                    position: relative;
                    overflow: hidden;
                }

                &.active {
                    border: 1px solid #FED417;
                }

                .product-title {
                    font: normal normal normal 16px/19px Karla;
                    max-width: 95%;
                    white-space: pre-wrap;
                    word-break: break-word;

                    @media (max-width: 768px) {
                        font: normal normal normal 14px/17px Karla;
                    }
                }
            }

            .complementarie-infos {
                border-top: 1px solid #F2F2F2;
                padding-top: 16px;
                padding-right: 15px;
                position: relative;
                width: 100%;
                grid-column: 1 / -1;

                @media (max-width: 768px) {
                    background-color: #F2F2F2;
                    padding: 24px 18px;
                }

                .fd_pack-closeButton {
                    top: 0;
                    right: 0;
                }

                &.hide {
                    display: none;
                }
            }
        }

        /* ------------- BLOC Resumer ------------- */
        .resumer {
            display: flex;
            flex-direction: column;
            .resume-composant-container {
                display: flex;
                align-items: center;
                gap: 15px;
                padding: 15px 0;
                position: relative;

                &.hide {
                    display: none;
                }

                &.not_available {
                    opacity: 0.5;
                    text-decoration: line-through;

                    &:after {
                        content: "Hors stock";
                        position: absolute;
                        background-color: #ffffcc;
                        text-align: center;
                        padding: 3px;
                        top: 50%;
                        transform: rotate(-45deg);
                        translate: -5px -15px;
                        font-size: 12px;
                        opacity: 0.8;
                    }
                }

                &:not(:last-child) {
                    border-bottom: 1px solid #DFDFDF;
                }

                .resume-composant-image {
                    width: 50px;
                    height: 50px;
                    display: flex;
                    justify-content: center;
                }

                .resume-product-infos {
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    width: 100%;

                    .product-infos-container {
                        max-width: 85%;
                        display: flex;
                        flex-direction: column;
                        gap: 5px;

                        .price-block-ht-ttc {
                            display: flex;
                            gap: 5px;

                            .price.price--sm {
                                font: normal normal bold 16px/19px Karla;
                                display: flex;
                                align-items: center;

                                .exposant {
                                    font-size: 12px;
                                    margin-top: -10px;
                                    margin-left: 5px;
                                }
                            }
                            .price-ht.price--xs {
                                font: normal normal normal 14px/17px Karla;
                                display: flex;
                                color: #78757A;
                                align-items: center;

                                .exposant {
                                    font-size: 10px;
                                    margin-top: -10px;
                                    margin-left: 5px;
                                }
                            }
                        }

                        .product-title {
                            color: #1C2123;
                            font: normal normal normal 16px/19px Karla;
                        }
                    }

                    .resume-composant-qty-wrapper {
                        display: flex;
                        font: normal normal normal 14px / 17px Karla;
                        background-color: #F2F2F2;
                        border-radius: 4px;
                        width: 35px;
                        height: 31px;
                        justify-content: center;
                        align-items: center;
                    }

                }
            }
        }
    }

    /* Dialog Infos complementaires */
    dialog#packStructure {
        position: fixed;
        top: 50%;
        left: 50%;
        right: 50%;
        transform: translate(-50%, -50%);
        z-index: 10000;
        border: none;
        padding: 0;
        background-color: #F2F2F2;
        border-radius: 4px;
        width: 85%;
        max-width: 1100px;
        max-height: 85%;
        height: 100%;
        overflow-y: scroll;

        @media (max-width: 768px) {
            width: 95%;
            max-height: 95%;
        }

        &::backdrop {
            background-color: #00000080;
        }

        &:focus-visible {
            outline: none;
        }

        .dialog-header {
            display: flex;
            gap: 10px;
            align-items: center;
            justify-content: center;
            position: relative;
            padding: 25px 0;

            .title {
                font: normal normal bold 16px/19px Karla;
                text-transform: uppercase;
                max-width: 80%;
                text-align: center;
            }
        }
        .dialog-body {
            padding: 0 65px;

            @media (max-width: 992px) {
                padding: 0;
            }
        }
        .dialog-footer {
            position: sticky;
            width: 100%;
            bottom: 0;
            background: white;
            display: flex;
            justify-content: space-between;
            padding: 15px 80px 15px 65px;
            box-shadow: 0 -3px 7px #0000001A;
            z-index: 12;
            margin-top: auto;

            @media(max-width: 992px) {
                padding: 12px 18px;
                flex-direction: column;
                gap: 11px;
            }

            .footer-price-container {
                display: flex;
                align-items: center;
                gap: 6px;

                @media (max-width: 992px) {
                    justify-content: center;
                }

                .price-tax_incl {
                    font: normal normal bold 24px / 29px Lato;
                    display: flex;
                    align-items: center;

                    .exposant {
                        font-size: 16px;
                        margin-top: -10px;
                        margin-left: 5px;
                    }
                }
                .price-tax_excl {
                    font: normal normal normal 16px / 19px Karla;
                    color: #78757A;
                    display: flex;
                    align-items: center;
                    margin-top: -10px;

                    .exposant {
                        font-size: 12px;
                        margin-top: -10px;
                        margin-left: 5px;
                    }
                }
                .complementarie-text {
                    font: normal normal bold 20px / 24px Lato;
                }
            }

            .selection-button-container {
                display: flex;
                gap: 12px;

                .cancel {
                    border: 1px solid #212529;
                    border-radius: 4px;
                    padding: 14px 45px;

                    @media  (max-width: 992px) {
                        width: 50%;
                        padding: 9px;
                    }

                    &:hover, &:focus-visible {
                        background: #183157;
                        color: white;
                    }
                }
                .validate {
                    border-radius: 4px;
                    padding: 14px 65px;

                    @media  (max-width: 992px) {
                        width: 50%;
                        padding: 9px;
                    }

                    &:focus-visible {
                        color: #fff;
                        background-color: #CC2028;
                        border-color: #CC2028;
                    }
                }

            }
        }
    }
}
/* -------------------------- DEBUT => Style pour Info comp (Prefix PIC-) -------------------------- */
.PIC-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    gap: 10px;

    img {
        max-width: 250px;
        max-height: 250px;
    }
}
/* --------------------------- FIN => Style pour Info comp (Prefix PIC-) --------------------------- */
@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-4px); }
    100% { transform: translateX(0); }
}