/**
* Theme Name: Partdo Child
* Description: This is a child theme of Partdo, generated by Merlin WP.
* Author: <a href="http://themeforest.net/user/KlbTheme">KlbTheme (Sinan ISIK)</a>
* Template: partdo
* Version: 1.2.4
*/

/*.product-options-acf label {*/
/*    border: 1px solid var(--color-info-dark);*/
/*    border-radius: var(--theme-theme-radius-base);*/
/*    -webkit-box-shadow: 1px 2px 4px rgba(33, 37, 41, 0.05);*/
/*    box-shadow: 1px 2px 4px rgba(33, 37, 41, 0.05);*/
/*	padding: 1rem 0.5rem;*/
/*}*/
/*.product-options-acf label:hover {*/
/*    border: 1px solid var(--color-info);*/
/*}*/

/*.product-options-acf input[type="radio"]:checked + label {*/
/*    background: var(--color-success);*/
/*    color: #fff;*/
/*    border: 1px solid var(--color-success);*/
/*}*/


/* Product Page */


@media screen and (min-width: 992px) {
    .single-product-wrapper .product-gallery {
        position: sticky;
        top: 50px;
    }
}

.garanties-options {
    padding-top: 15px;
}
.garanties-options .garantie-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 5px;
    transition: background-color 0.2s ease;
}

.garanties-item-description {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.garanties-item-price {
    width: 30%;
    display: flex;
    justify-content: flex-end;
}


.garanties-item-month {
    font-size: 12px;
}

.garanties-options .garantie-option:hover {
    background-color: #f9f9f9;
}

.garanties-options .garantie-option input[type="radio"], .garanties-options .garantie-option input[type="checkbox"] {
    margin-right: 10px;
}

.garanties-options .garantie-option input[type="radio"]:checked + div, .garanties-options .garantie-option input[type="checkbox"]:checked + div {
    font-weight: bold;
    color: #0073aa;
}


/* CHECKOUT */

.order-review-wrapper {
    position: sticky;
    position: sticky;
    top: 50px;
}


div.checkout-step {
    margin: 50px 0px;
}


ul.wc_payment_methods.payment_methods.methods {
    padding: unset;
}

li.wc_payment_method > label, ul#shipping_method > li > label {
    margin-top: 5px;
    margin-bottom: 0;
    vertical-align: middle;
    font-size: 0.8125rem;
    border: 1px solid var(--color-form-border);
    padding: 15px 10px;
    border-radius: var(--theme-form-radius);
    box-shadow: 0 1px 2px 0 rgba(33, 37, 41, 0.09);
    width: 100%;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: space-between;
    margin-left: 0px !important;
}


li.wc_payment_method > input[type="radio"]:checked + label,  ul#shipping_method > li > input[type="radio"]:checked + label {
    background-color: var(--color-primary);
    color: white;
}

li.wc_payment_method > label:hover, ul#shipping_method > li > label:hover {
    background-color: #ddd;
}

/* Ne pas afficher les boutons radio par défaut (facultatif, seulement si vous souhaitez des boutons personnalisés) */
li.wc_payment_method > input[type="radio"], ul#shipping_method > li input[type="radio"] {
    display: none;
}


.p-Input-input .Input .p-CardNumberInput-input .Input--empty .p-Input-input--textRight, #Field-expiryInput, #Field-cvcInput {
    padding: 10px 10px !important;
}


.drawer-heading, nav.drawer-contacts {
    display: none;
}

/* Configurateur */

.config-elements {
    padding: 15px;
    z-index: 999 !important;
    background: white;
    position: sticky;
}

.config-item {
    padding: 15px;
}

.config-option-img {
    width: 50px;
    height: 50px !important;
    border-radius: 12px 0px 0px 12px !important;
}

.config-label-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--color-form-border);
    border-radius: var(--theme-form-radius);
    box-shadow: 0 1px 2px 0 rgba(33, 37, 41, 0.09);
    padding-right: 10px;
}

.config-label-without-image {
    padding: 10px;
}

.config-label-input:hover {
    background-color: #f9f9f9;
}

.config-elements input[type="radio"]:checked + label {
    font-weight: bold;
    color: var(--color-primary);
}

.config-elements input[type="radio"] {
    display: none;
}

.config-container > .config-preview-container {
    width: 100%;
    min-height: 300px;
}

.config-preview {
    position: relative;
    top: 0;
}

.config-preview img {
    position: absolute;
    top: 0;
    left: 0;
}

.config-2-items-mobile {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.config-2-items-mobile > div {
    width: 48%;
}

.config-container-price {
    position: sticky;
    bottom: 0px;
    padding: 15px;
    background-color: white;
    box-shadow: 0 1px 2px 0 rgba(33, 37, 41, 0.09);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.config-container-price .ttc-price {
    font-size: 1rem;
    font-weight: bold;
    margin: 0px;
}

.add-to-cart-config {
    height: 2.875rem;
    margin-right: 7px;
    color: #fff !important;
    background-color: var(--color-success) !important;
    border: 1px solid var(--color-success);
}

div.error {
    margin-top: 5px;
    display: none;
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

div.spinner-price {
    display: none;
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Desktop layout */
@media screen and (min-width: 992px) {
    .config-container {
        display: flex;
    }

    .config-container > .config-preview-container {
        width: 65%;
        position: sticky;
        top: 0;
    }

    .config-preview {
        position: sticky;
        top: 0;
    }

    .config-preview img {
        position: absolute;
        top: 0;
        left: 0;
    }

    .config-container > .config-elements {
        width: 35%;
    }

    .config-2-items {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .config-2-items > div {
        width: 48%;
    }
}

/* Mobile layout */
@media screen and (max-width: 991px) {
    .config-container {
        display: block;
    }

    .config-container > .config-preview-container {
        width: 100%;
        min-height: auto;
        position: relative;
        top: auto;
    }

    .config-preview {
        position: relative;
        width: 100vw;
        overflow: hidden;
    }

    .config-preview img {
        position: static;
        width: 100vw;
        height: auto;
        object-fit: cover;
        display: block;
    }

    .config-elements {
         z-index: unset;
         position: unset;
    }

    .config-container-price {
        position: sticky;
        bottom: 0;
        box-shadow: none;
        margin-top: 20px;
    }

    .config-item {
        padding: 10px 5px;
    }

    .config-label-input {
        display: flex;
        justify-content: space-between;
        align-content: center;
        flex-direction: row;
    }
}







