/*
Theme Name:     Informapic with Hello Elementor
Theme URI:      https://informapic.fr
Template:       hello-elementor
Author:         Informapic
Author URI:     http://informapic.fr
Version:        1.0
*/


/*****************/ 
/*  ADMIN BAR    */
/*****************/ 
/* AFFICHE LE EDIT CORRESPONDANT AU TYPE DE POST */ 
body.elementor-page #wp-admin-bar-edit,
body:not(.elementor-page) #wp-admin-bar-elementor_edit_page
{
    display: none;
}

/* CUSTOM LINK IN ADMIN BAR */
#wp-admin-bar-custom_menu > .ab-item:before {
    content: "\e904";
    font-family: eicons;
    top: 3px;
    font-size: 18px;
}

#wp-admin-bar-wp-logo{
    display: none;
}

/*****************/ 
/*  VITAL THEME  */
/*****************/ 

/* Corrige le max-width de la zone de commentaires pour les pages */
.page #comments,
.page .comments-area {
    margin: 0 auto;
    max-width: min(100%, 1140px);
}

/*****************/ 
/*  WOOCOMMERCE  */
/*****************/ 
/* Applique le style Hello aussi pour les pages produits en Elementor */
body.single-product .site-main {
    margin-inline-end: auto;
    margin-inline-start: auto;
    width: 100%;
}
@media (max-width: 575px) {
    body.single-product .site-main {
        padding-inline-end: 10px;
        padding-inline-start: 10px;
    }
}
@media (min-width: 576px) {
    body.single-product .site-main {
        max-width: 500px;
    }
}
@media (min-width: 768px) {
    body.single-product .site-main {
        max-width: 600px;
    }
}
@media (min-width: 992px) {
    body.single-product .site-main {
        max-width: 800px;
    }
}
@media (min-width: 1200px) {
    body.single-product .site-main {
        max-width: 1140px;
    }
}


/*****************/ 
/*  CUSTOMIZER   */
/*****************/ 
.customizer-elementor-color-selector {
    display: flex;
    flex-wrap: wrap;
}

.customizer-elementor-color input {
    display: none;
}
        
.customizer-elementor-color-choice {
    cursor: pointer;
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #ccc;
    position: relative;
    margin-right: 5px;
}

.customizer-elementor-color.custom .customizer-elementor-color-choice {
    border-radius: 50%;
    background: conic-gradient(
        red,
        orange,
        yellow,
        green,
        blue,
        indigo,
        violet
    );
}

.customizer-elementor-color input:checked + .customizer-elementor-color-choice::after {
    content: "✓";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 0 2px rgba(0,0,0,.6);
}

li.customize-control-elementor_color_radio + li.customize-control-color{
    display: none;
}

li.customize-control-elementor_color_radio:has(.customizer-elementor-color.custom input:checked) + li.customize-control-color{
    display: list-item;
} 