/* Configurator Menu */
.wpc-page-overflow-hidden {
    height: 100dvh !important;
    width: 100dvw !important;
    overflow: hidden !important;
}

/* Sidebar */
.wpc-main-controls {
    /* width: 33% !important; */
    position: relative;
    height: 100dvh;
    background-color: #f6f6f5;
    background-color: white;
    box-shadow: -2px 0 2px -2px rgba(0, 0, 0, 0.2);
}

/* .wpc-control-lists .wpc-parent-control {
	display: none !important;
} */

.wpc-control-lists.wpc-parent-control {
    display: none !important;
}

.wpc-controls-parent-wrap.wpc-config-element.popover {
    max-height: none;
    height: 100%;
}

.wpc-sub-label {
    color: #1d1d1d99;
    font-size: 14px;
}

/* Fix : .wpc-control-list.wpc-hide-control-set avec un sous-label vide conserve sa hauteur.
   NB : on NE met PAS display:none sur le sélecteur global car WPC Pro ajoute wpc-hide-control-set
   sur TOUS les .wpc-control-list en popover (état initial) — la vraie correction est padding:0. */
.wpc-control-list.wpc-hide-control-set:has(.wpc-sub-label.no-label) {
    display: none;
}

/* Card Items */
.popover .wpc-parent-control > .wpc-control-lists-inner > .wpc-control-item > .wpc-layer-title-wrap {
    position: relative;
    background-color: white !important;
    box-shadow: none;
    margin: 0;
    border-radius: 0;
    border-top: 0;
    border-left: 0;
    transition: all 0.3s;
    padding-top: 20px;
    padding-bottom: 20px;
}

.popover .wpc-parent-control > .wpc-control-lists-inner > .wpc-control-item > .wpc-layer-title-wrap:hover {
    background-color: #f5f5f5 !important;
}

.wpc-arrow-icon {
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border-radius: 50%;
}

.wpc-arrow-icon svg {
    width: 20px;
    fill: #1d1d1d99;
}

.popover .wpc-parent-control > .wpc-control-lists-inner > .wpc-control-item > .wpc-layer-title-wrap:hover .wpc-arrow-icon {
    /* background-color: black; */
    /* border-radius: 50px; */
    transform: translateX(4px);
}

.popover .wpc-parent-control > .wpc-control-lists-inner > .wpc-control-item > .wpc-layer-title-wrap:hover .wpc-arrow-icon svg {
    fill: black;
}

/* Collapsed list */
.wpc-collapsed ul {
    display: flex;
    flex-wrap: wrap;
}

.wpc-collapsed ul > li {
    flex: 1 0 45%;
}

.wpc-collapsed ul > li.wpc-layer-link-group-wrapper {
    flex: 1 0 100% !important;
}

/* Properly hide items */
/* .wpc-hide-control-set:has(.wpc-cl-hide-layer) {
	display: none !important;
} */

/* Drawer Modal */
.popover .wpc-sub-control {
    /* height: calc(100dvh - 145px) !important; */
    /* height: 100dvh !important; */
    box-shadow: none !important;
}

@media (min-width: 992px) {
    .popover .wpc-sub-control {
        height: 100dvh !important;
    }
}

.wpc-main-controls .wpc-cart-form-parent-wrap.wpc-config-element{
    display: none !important;
}

.wpc-control-header {
    padding: 10px 0;
    padding-bottom: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: saturate(180%) blur(5px);
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: column;
}

.wpc-primary-btn.next-step-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    outline: none;
    margin: 0;
    /* .wpc-config-steps a pointer-events:none — les boutons doivent explicitement le réactiver */
    pointer-events: auto;
    position: relative;
}

/* Spinner pour le bouton Commander (WPC Pro ne définit le spinner que pour a.wpc-btn-loading) */
button.wpc-btn-loading:after {
    content: '';
    border-radius: 50%;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(150, 150, 150, 0.3);
    border-top-color: currentColor;
    animation: wpc-refbikes-spin 0.8s infinite linear;
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
    flex-shrink: 0;
}

@keyframes wpc-refbikes-spin {
    to { transform: rotate(360deg); }
}

.wpc-control-next-btn {
    width: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 0 0 0;
    pointer-events: all;
}

.wpc-btn-text {
    font-size: 14px;
}

.wpc-control-prev-btn{
    width: 100%;
}

.wpc-link.prev-step-btn {
    color: #1d1d1d99;
    -webkit-user-select: initial;
    -moz-user-select: initial;
    user-select: initial;
    border: none;
    padding: 0;
    font-size: 14px;
    border-radius: 0;
    transition: all 0.3s;
    text-decoration: underline 1px #1d1d1d99;
    outline: none;
    background: none;
    pointer-events: all;
}

.wpc-link.prev-step-btn:hover {
    background-color: transparent !important;
    color: black;
}

.wpc-config-steps {
    display: flex;
    justify-content: flex-end;
    padding: 10px;
    pointer-events: none;
}

.wpc-control-header .wpc-layer-title-wrap {
    padding-right: 0 !important;
}

.wpc-control-header .wpc-cart-form {
    gap: 0;
    margin: 0 !important;
}

.wpc-cart-form-wrapper {
    margin: 0 0 0 auto;
    pointer-events: all;
}

.wpc-control-header {
    padding: 0;
}

.wpc-form.wpc-cart-form.cart {
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
}

.wpc-control-header .wpc-control-header-content {
    display: none !important;
    width: 100%;
    background-color: transparent;
    display: flex;
    align-items: center;
}

.wpc-control-breadcrumb {
    /* margin-top: 10px; */
    overflow-x: auto;
    padding: 0 20px;
    height: 65px;
    width: 100%;
    z-index: 1;
    /* border-top: 1px solid rgba(0, 0, 0, 0.1); */
    display: flex;
    align-items: center;
    gap: 20px;
}

.wpc-control-breadcrumb span {
    color: #c2c2c2;
    font-size: 16px;
    cursor: pointer;
    white-space: nowrap;
}

.wpc-control-breadcrumb span.finished {
    color: black;
}

.wpc-next-arrow:before {
    font-weight: bold !important;
}

/* Fix : bouton "Fermer" masqué — cliquer dessus ferme le configurateur sans moyen de le rouvrir */
.wpc-control-close-btn {
    display: none !important;
}

/* Fix : bouton "Valider mon vélo" masqué — ouvre un popup récapitulatif inutile dans notre flow */
[data-open-popup-id="quote-form-summary"] {
    display: none !important;
}

.wpc-control-footer {
    position: absolute;
    bottom: 0;
    backdrop-filter: saturate(180%) blur(5px);
    background-color: rgba(255, 255, 255, 0.75) !important;
    width: 100%;
    z-index: 10;
    border-top: 1px solid var(--wpc-control-separator-color);
    padding: 0 !important;
}

/* Fix : le prix est désormais dans le footer (popover-footer.php override) ; masquer l'instance originale */
.wpc-main-controls > .wpc-total-price-parent-wrap {
    display: none !important;
}

.wpc-control-footer .wpc-total-price-parent-wrap {
    width: 100%;
}

.wpc-control-footer .wpc-total-price-parent-wrap .wpc-single-price {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.wpc-control-lists-inner .wpc-control-list .wpc-layer-title-wrap .wpc-arrow-icon {
    display: none !important;
}

.wpc-sub-control .wpc-control-list {
    /* padding-top/bottom : 0 pour éviter les 42px fantômes sur les wrappers sans contenu visible */
    padding: 0px 20px !important;
    margin: 0 !important;
}

.wpc-sub-control .wpc-control-lists-inner {
    display: flex;
    flex-direction: column;
    /* padding-top : compense .wpc-control-header position:absolute (hauteur breadcrumb = 65px + 10px marge) */
    padding: 80px 0px 10px !important;
}

.wpc-sub-control .wpc-control-lists-inner .wpc-layer-title-text {
    font-size: 18px;
    text-transform: capitalize;
}

.wpc-custom-popover-space#before {
    min-height: 65px;
    width: 100%;
}

.wpc-custom-popover-space#after {
    min-height: 150px;
    width: 100%;
}

.wpc-icon-semi-round.custom-icon-size{

}
/* Color Picker */

.wpc-control-item.wpc-control-type-icon.wpc-layer-type-image.wpc-icon-semi-round.custom-icon-size{
    border: none !important;
    border-radius: none;
    padding: 0 !important;
    width: 35px;
}

.wpc-sub-control .custom-icon-color{
    border: 1px solid #f4f4f4;
    border-radius: 10px !important;
    padding: 20px !important;
}

.popover .wpc-sub-control .wpc-control-item .wpc-control-item-color {
    width: 35px !important;
    height: 35px !important;
    border-radius: 50%;
}

.wpc-sub-control .custom-icon-color.current {
    border: 2px solid #0071e3;
}

.popover .wpc-sub-control .wpc-control-item.current {
    box-shadow: none !important;
}

.popover .wpc-sub-control .wpc-control-item:not(.wpc-control-type-label).current:after {
    filter: invert(1);
}

.popover .wpc-control-item .wpc-control-item-info {
    left: 50% !important;
    transform: translateX(-50%);
    top: -10px !important;
    border: 1px solid rgb(0, 0, 0, 0.1);
    border-radius: 3px;
}

.custom-icon-color.wpc-control-item.wpc-control-type-color.wpc-layer-type-image.wpc-icon-semi-round.custom-icon-size {
    padding: 0 !important;
    border: 1px solid #c2c2c2 !important;
    border-radius: 50px !important;
    background-color: transparent !important;
}

.custom-icon-color.wpc-control-item.wpc-control-type-color.wpc-layer-type-image.wpc-icon-semi-round.custom-icon-size.current {
    border: 1px solid black !important;
}

.popover .wpc-control-item .wpc-control-item-info .wpc-control-item-info-inner .wpc-hover-price {
    display: flex !important;
}

/* Label Picker */
.popover .wpc-sub-control .wpc-control-item {
    border: 1px solid rgb(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 5px 10px !important;
    transition: all 0.3s;
    /* Flex column : permet d'empiler title-wrap + description sans rupture de layout */
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* ── Structure WPC Pro 3.8.2 : .wpc-control-item-label / .wpc-icon-label-inner ── */

/* Supprime les marges par défaut du <p> wrapper */
.popover .wpc-sub-control .wpc-control-item .wpc-control-item-label {
    margin: 0;
    padding: 0;
}

/* Flex row : image centrée verticalement à gauche, bloc texte à droite */
.popover .wpc-sub-control .wpc-control-item .wpc-icon-label-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

/* Image ne rétrécit pas */
.popover .wpc-sub-control .wpc-control-item .wpc-control-item-icon-wrap {
    flex-shrink: 0;
}

/* Bloc texte : prend toute la largeur restante sans déborder */
.popover .wpc-sub-control .wpc-control-item .wpc-icon-label {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* Titre 15px, peut rétrécir si prix présent */
.popover .wpc-sub-control .wpc-control-item .wpc-control-item-name {
    font-size: 15px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Prix : ne rétrécit pas, reste à droite, ne déborde pas */
.popover .wpc-sub-control .wpc-control-item .wpc-icon-label .wpc-hover-price,
.popover .wpc-sub-control .wpc-control-item .wpc-icon-label .wpc-price {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Description : pleine largeur, ne déborde pas.
   padding-left utilisé (pas margin-left) pour rester dans box-sizing:border-box. */
.popover .wpc-sub-control .wpc-control-item .wpc-layer-description {
    width: 100%;
    box-sizing: border-box;
    margin: 4px 0 0;
    padding: 0;
    font-size: 13px !important;
    color: #1d1d1d99;
    overflow-wrap: break-word;
}

/* Indent sous le titre uniquement quand une image est présente.
   Calcul : image 50px + gap 10px = 60px */
.popover .wpc-sub-control .wpc-control-item:has(.wpc-control-item-icon-wrap img) .wpc-layer-description {
    padding-left: 60px;
}

.popover .wpc-sub-control .wpc-control-item:hover {
    background-color: #f4f4f4;
}

.popover .wpc-sub-control .wpc-control-item.current {
    border: 1px solid #390052;
    background-color: #f4f4f4;
}

.wpc-sub-control .wpc-control-item.wpc-control-type-label .wpc-control-item-name {
    font-weight: normal;
    text-transform: none;
}

/* Inline Text Picker */

.popover .wpc-sub-control .wpc-control-item:not(.wpc-control-type-color).current:after {
    display: none !important;
}

.wpc-controls-wrap .wpc-sub-control .wpc-control-item.wpc-control-type-inline-text {
    border: 1px solid rgb(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 10px !important;
    transition: all 0.3s;
    text-align: center;
    min-width: 50px;
}

.wpc-controls-wrap .wpc-sub-control .wpc-control-item.wpc-control-type-inline-text.current {
    border: 1px solid black;
    background-color: #f4f4f4;
}

.popover .wpc-control-item:not(.wpc-control-type-color) .wpc-control-item-info {
    display: none;
}

/* Payments */
.wpc-custom-price-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Not allowed */
.wpc-cl-disable-layer:after,
.wpc-cl-disable-group .wpc-controls-img-list .wpc-controls-list-img:after {
    display: none !important;
}

.wpc-cl-disable-layer:before,
.wpc-cl-disable-group .wpc-controls-img-list .wpc-controls-list-img:before {
    content: "\e901" !important;
    color: black !important;
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    font-size: 25px;
    font-family: "wp-configurator" !important;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    text-align: center;
}

/* Out of stock */
.wpc-out-of-stock {
    pointer-events: none;
    cursor: not-allowed;
}

.wpc-out-of-stock-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff99;
    border-radius: 10px;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpc-out-of-stock-container.color {
    background-color: #fffffff5;
}

.wpc-out-of-stock-content {
    background-color: #1d1d1d;
    padding: 5px 10px;
    color: white;
    border-radius: 50px;
    font-size: 14px;
}

.wpc-out-of-stock-container svg {
    height: 40%;
}

.popover .wpc-sub-control .wpc-control-item.wpc-out-of-stock:hover {
    background-color: transparent;
}

/* Share */
.wpc-popup-inner .wpc-share-inner .wpc-share-icon a {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.wpc-popup-inner .wpc-share-inner .wpc-share-icon span {
    margin: 0 !important;
}

/* Floating icons */
.wpc-floating-icons {
    left: 10px;
    top: 10px;
}

.wpc-floating-icons li:before {
    visibility: visible !important;
    opacity: 1 !important;
    left: 40px !important;
    white-space: nowrap;
}

/* Préconfiguration popover */
.wpc-flyin-wrap .wpc-close-btn {
    background: transparent;
    transition: all 0.3s;
}

.wpc-flyin-wrap .wpc-close-btn:hover .wpc-close:before {
    color: #0071e3;
}

.wpc-close:before {
    font-weight: bold;
    transition: all 0.3s;
}

/* Save préconfiguration tab */
.wpc-field-group.wpc-button {
    display: flex;
    margin: 0;
    width: auto;
}

[type="button"]:focus,
[type="button"]:hover,
[type="submit"]:focus,
[type="submit"]:hover,
button:focus,
button:hover {
    background-color: white !important;
    color: #1d1d1d !important;
}

.wpc-link-cancel {
    color: #1d1d1d !important;
}

.form-notice {
    position: initial;
}

@media (max-width: 1024px) {

    /* Autorise le scroll vers le footer du site */
    html, body {
        overflow-x: clip !important;
        overflow-y: auto !important;
    }

    .wpc-custom-popover-space#before,
    .wpc-custom-popover-space#after {
        display: none;
    }

    .wpc-config-banner {
        display: none;
    }

    /* FIX 1 — Débordement horizontal corrigé */
    .wpc-configurator-wrap.wpc-single-product-wrap,
    .wpc-configurator-wrap.popover,
    .wpc-main-controls,
    .wpc-controls-parent-wrap,
    .wpc-controls-wrap {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .wpc-configurator-wrap.wpc-single-product-wrap {
        display: block !important;
        position: relative !important;
        overflow: visible !important;
        height: auto !important;
    }

    /* FIX 2 — Vélo sticky, grand et centré, avec paiement visible */
    .wpc-preview-parent-wrap {
        position: sticky !important;
        top: 69px !important;
        z-index: 10 !important;
        height: 300px !important;
        min-height: 300px !important;
        overflow: visible !important;
        width: 100% !important;
        background: #fff !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .wpc-preview-parent-wrap .wpc-configurator {
        width: 100% !important;
        flex: 1 1 auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        overflow: visible !important;
        height: auto !important;
    }

    /* padding-top: 15px centre visuellement le vélo
       (le plugin JS positionne l'image ~20px au-dessus du stage-outer) */
    .wpc-preview-parent-wrap .wpc-configurator-view {
        width: 100% !important;
        flex: 1 1 auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        overflow: visible !important;
        height: auto !important;
        padding-top: 15px !important;
    }

    .wpc-preview-parent-wrap .wpc-carousel-stage-outer {
        overflow: visible !important;
        height: auto !important;
        width: 100% !important;
    }

    .wpc-preview-parent-wrap .wpc-carousel-stage {
        height: auto !important;
        width: 100% !important;
    }

    .wpc-preview-parent-wrap .wpc-carousel-item {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: auto !important;
        width: 100% !important;
    }

    .wpc-preview-inner {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: auto !important;
        position: relative !important;
    }

    /* Moyens de paiement centrés sous le vélo */
    .wpc-config-payment {
        display: flex !important;
        flex-shrink: 0 !important;
        width: 100% !important;
        justify-content: center !important;
        max-height: 54px;
    }

    /* FIX 2 (suite) — Zone de contrôles avec hauteur calculée :
       viewport - header(69px) - preview(300px) - footer-action(~70px) */
    .wpc-main-controls {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        overflow: hidden !important;
        height: calc(100dvh - 69px - 300px - 70px) !important;
        min-height: 280px !important;
    }

    .wpc-controls-parent-wrap {
        flex: 1 1 auto !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        min-height: 0 !important;
        width: 100% !important;
    }

    .wpc-controls-wrap {
        flex: 1 1 auto !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        min-height: 0 !important;
        width: 100% !important;
    }

    .wpc-sub-controls {
        flex: 1 1 auto !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        min-height: 0 !important;
        width: 100% !important;
        position: relative !important;
    }

    .wpc-control-lists.wpc-show-control-set {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 auto !important;
        overflow: hidden !important;
        min-height: 0 !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        height: 100% !important;
        width: 100% !important;
    }

    .wpc-control-header {
        flex: 0 0 auto !important;
    }

    .wpc-control-breadcrumb {
        padding: 0 16px !important;
    }

    /* SEULE zone qui scrolle : les options de personnalisation */
    .wpc-control-lists-inner {
        flex: 1 1 auto !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        min-height: 0 !important;
    }

    /* FIX 3 & 4 — Footer toujours visible, prix + bouton sur une ligne */
    footer.wpc-control-footer {
        flex: 0 0 auto !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
        background: #fff !important;
        border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.06) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
        margin: 0 !important;
    }

    footer.wpc-control-footer .wpc-total-price-parent-wrap {
        flex: 1 1 auto !important;
        display: flex !important;
        flex-direction: column !important;
        min-width: 0 !important;
        align-items: flex-start !important;
        gap: 0 !important;
    }

    footer.wpc-control-footer .wpc-single-price {
        display: flex !important;
        /* flex-direction: column !important; */
        align-items: flex-start !important;
    }

    footer.wpc-control-footer .wpc-config-steps {
        flex: 0 0 auto !important;
        width: auto !important;
        display: flex !important;
        align-items: center !important;
    }

    /* Bouton ne prend PAS toute la largeur */
    footer.wpc-control-footer .wpc-primary-btn {
        width: auto !important;
        min-width: 130px !important;
        max-width: 180px !important;
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }

    /* Masquer les boutons de navigation dans le header sur mobile (footer suffit) */
    .wpc-control-header-content .wpc-control-next-btn,
    .wpc-control-header-content .wpc-cart-form-wrapper {
        display: none;
    }
}

.wpc-sub-control .wpc-control-list .wpc-control-list-inner{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}


.fourches, .batteriePlus{
    display:none !important;
}

.popover .wpc-configurator .configurator-view{
    align-content: center;
    height: 100%;
}
