/* ========== FICHE PRODUIT : ESPACE ENTRE TITRE ET DESCRIPTION COURTE ========== */
.entry-summary .woocommerce-product-details__short-description p {
    padding-top: 10px;
    padding-bottom: 20px;
}


/* ========== PRODUITS GROUPÉS PAR TAILLE : PRÉSENTATION LISTE (boutons +/-) ========== */
.woosg-products.woosg-products-layout-list .quantity input[type=number] {
    width: 41% !important;
}

.woosg-products.woosg-products-layout-list .woosg-item-product .woosg-quantity-plus {
    position: relative;
}

.woosg-products.woosg-products-layout-list .woosg-item-product .woosg-quantity-plus-minus .woosg-quantity-input .woosg-quantity-plus {
    right: 54% !important;
}


/* ========== GALERIE STICKY ========== */
#wpgs-gallery {
    position: sticky !important;
    top: 50px !important;
}

@media (max-width: 959px) {
    #wpgs-gallery {
        position: static !important;
    }
}


/* ========== WP CLEVER : GRILLES DE VARIATIONS ========== */

/* 1/3 - Supprimer la bordure du nom d'attribut */
.variations_form .variations .variation {
    border-style: none !important;
}

/* 2/3 - Masquer le nom d'attribut */
.variations .variation .label {
    visibility: hidden;
}

/* 3/3 - Espacement entre PRIX et "Choisir imprimé" */
.woosg-products .variations .variation {
    padding-top: 0px !important;
    padding-bottom: 5px;
    margin-top: 0px !important;
}


/* ========== BOUTON POPUP : VOIR LES IMPRIMÉS ========== */

.button-open-customizer,
.wapf-field-group div .button-open-customizer {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background-color: #ffce29 !important; /* Jaune doré */
    color: white !important;
    padding: 20px 16px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 12px 0 0 12px;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap;
    min-height: 200px;
    box-sizing: border-box;
}

.button-open-customizer span {
    display: inline-block;
    transform: rotate(180deg);
}

/* Version mobile */
@media screen and (max-width: 768px) {
    .button-open-customizer,
    .wapf-field-group div .button-open-customizer {
        top: auto;
        bottom: 0;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        writing-mode: horizontal-tb;
        text-orientation: initial;
        min-height: auto;
        padding: 14px 32px;
        border-radius: 14px 14px 0 0;
        background-color: #ffce29 !important;
        color: white !important;
        max-width: 95vw;
        text-align: center;
        white-space: nowrap;
        font-weight: bold;
        font-size: 16px;
        box-sizing: border-box;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
    }

    .button-open-customizer span {
        transform: none;
    }
}


/* ========== POPUP Studio Wombat ========== */
.wapf-customizer {
    padding: 15px;
    background: white;
    width: 96%;
    max-width: 1200px;
    position: fixed;
    z-index: 999999;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7);
    display: flex;
    visibility: hidden;
    opacity: 0;
    transition: all .2s;
    max-height: 95vh;
    overflow-y: auto;
}

.wapf-customizer.active {
    visibility: visible;
    opacity: 1;
}

.wapf-customizer-bottom {
    margin-top: 0px;
    width: 55px;
    float: right;
}

@media all and (max-width: 768px) {
    .wapf-customizer {
        top: 0;
    }
}


/* ========== MASQUER LES TABS WOOCOMMERCE ========== */
.woocommerce div.product .woocommerce-tabs {
    display: none;
}