/*
Theme Name: Divi
Description: Divi child
Author: owmel.fr
Author URI: https://www.wpserveur.net
Template: Divi
Version: 0.1.0
*/

/* Codeway add */
/* ------------------------------ */

.grid-posts .product_visibility-outofstock{
    display: none;
}


#wcfm-main-contentainer #wcfm_products_simple_submit_button{
    background-color: #de1e38 !important;
}
/* ------------------------------
add 2024-09-30
------------------------------ */
body.cw-simple-product #booking_form{
    display: none;
}
.page-id-44 .product_type-simple,
.page-id-44 .product_type-ovabrw_car_rental{
    position: relative;
}
.page-id-44 .product_type-ovabrw_car_rental:before{
    position: absolute;
    right:0; top:0;
    content:'location';
    background-color: #e6237e;
    color: #fff;
    padding:6px;
    z-index: 200;
}

/*
.page-id-44 .product_type-simple:before{
    position: absolute;
    right:0; top:0;
    content:'vente';
    background-color: #e8482c;
    color: #fff;
    padding:6px;
    z-index: 200;
}*/

.wcfm-tabWrap{
    overflow: scroll;
}

/*#wcfm_products_manage_form #pro_title::placeholder {*/
#wcfm_products_manage_form input::placeholder {
    color: #343434;
    opacity: 0.3;
}

/* ------------------------------ */
/* Codeway add */


#wcfm_menu + img{
    display:none;
}
#wcfm-content > img{
    display:none;
}
#wcfm_menu .wcfm_menu_item span.text{
    margin-right:0;
}


.media-sidebar{
    display: none;
}
.wcfm_product_manager_gallery_fields{
    width: 100%;
}
.wcfm_product_manager_cats_checklist_fields{
    max-width: none;
}


.dialog::backdrop {
    background-color: #d2cbff;
    opacity: 0.7;
}

.dialog {
box-shadow: 0 4px 5px rgb(0 0 0 / 30%);
border-radius: 8px;
}

.dialog header {
display: flex;
align-items: center;
justify-content: space-between;
}


.dialog header h2 {
margin-block: 0px;
}

.dialog  button {
    padding: 0.75rem 1rem;
    background: none;
    font-size: 1rem;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid white;
    background: #DE1E38;
    color: #fff;
}

.dialog.showcw{
    display: block !important;
}

.wcfm-tabWrap{
    height:auto !important;
}

#wcfm_products_manage_form .prevtabcw{
    background-color: #b6b6b6 !important;
}

/* On screens that are 992px or less, set the background color to blue */
@media screen and (max-width: 768px) {

    body.page-id-449 #add_new_product_dashboard{
        float: right;
    }
    body.page-id-449 a.add_new_wcfm_ele_dashboard span.text{
        display: inline-block !important;
    }

    /*
    #add_new_product_dashboard{
        position: relative;
        left: -21vw;
    }
    #add_new_product_dashboard:after{
        position: absolute;
        left: 100%;
        margin-left:10px;
        content: "Ajouter un produit";
        color: #000;
        text-wrap: nowrap;
    }
    */
}


/*
error in https://lecoinpaillettes.fr/tableau-de-bord-des-ventes-et-locations/parametres/
@media screen and (min-width: 641px) {
    .wcfm-tabWrap .page_collapsible + .wcfm-container {
        width:90%;
    }
}
*/

/*
#ovabrw-rental .ovabrw-advanced-settings{
    display: none;
}
*/
/* Remove BTN "+Ajouter un nouveau Longue durée (5-9mois)" => add new custom taxonomy under Taxonomy Location Longue Durée */
.wcfm_add_new_category_box.wcfm_add_new_taxonomy_box{
    display:none;
}
#wcfm_products_manage_form .ovabrw_amount_colis_field {
    position: relative;
    padding: 0 0 30px;
}
#wcfm_products_manage_form .ovabrw_amount_colis_field label {
    display: block;
    width: 100%;
}
#wcfm_products_manage_form .ovabrw_amount_colis_field label {
    margin: 0;
    margin-bottom: 0px;
    padding: 3px;
    font-size: 15px;
    margin-bottom: 10px !important;
    font-style: normal;
    vertical-align: top;
    font-style: italic;
    font-weight: 600 !important;
}
.ovabrw_amount_colis_field select {
    padding: 8px 10px;
    width: 60%;
    margin-right: 0;
    font-size: 15px;
    display: inline-block;
    line-height: 18px;
    min-height: 35px;
    max-width: 100%;
    box-shadow: 1px 1px 5px 0 #E9E9E9;
  }
/* Codeway add */



#wcfm_products_manage_form input{  
    padding: 8px 10px;
}
.atable{
    display:table;
    width:100%;
}
.atable .acol{
    display:table-cell;
    width:50%;
}
.label{
    font-style: italic;
      font-weight: 600 !important;
}

#wcfm-main-contentainer input.disabled-field{
    pointer-events: none;
    background-color:rgba(0,0,0,.1) !important;
    color:rgba(0,0,0,.4) !important;
}

#wcfm-main-contentainer input.location-input-net{
    background-color:rgba(0,0,0,.1) !important;
    color:rgba(0,0,0,.4) !important;
}
#wcfm_products_manage_form #general_product_data #ovabrw-rental .form-field label{
    display:block;
    width:100%;
}
#wcfm_products_manage_form #general_product_data #ovabrw-rental select{
    margin-left:0;
}
#wcfm_products_manage_form #general_product_data #ovabrw-rental input{
    margin-left:0;
}
#wcfm_products_manage_form #general_product_data #ovabrw-rental .form-field{
    padding:0 0 30px;
}
.wcfm_product_manager_cats_checklist_fields_cw{
    position: relative;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin: auto;
        margin-top: auto;
        margin-bottom: auto;
    margin-top: 10px;
    margin-bottom: 20px;
}
.wcfm_product_manager_cats_checklist_fields_cw .img_tip{
    position: absolute;
    right: 20px;top:20px;
}
.atable .acol.padding{
    padding:5px;
}

