/*
Theme Name: hello-elementor Child
Theme URI:  https://www.wpserveur.net
Author:     WPServeur
Author URI: https://www.wpserveur.net
Template:   hello-elementor
Version:    1.0
License:    GNU General Public License v2 or later
*/

/* 🔥 Sidebar container styling */

.sidebar-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-section h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
.sidebar-sec-items {
    text-transform: uppercase !important;
}
/* 🔥 Normal checkboxes */
.sidebar-section label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    margin-bottom: 6px;
}

.sidebar-section input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    accent-color: black;
    /* modern browsers */
}
.sidebar-section label.color-box:has(input:checked) {
  border: 2px solid #000;
  border-radius: 4px;
}

.sidebar-section {
    border-bottom: 1px solid #00000080;
}
.sidebar-section:nth-last-of-type(1) {
    border-bottom: 0
}

/* 🔥 Color boxes styling */
.color-box {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 1px solid #ccc;
    margin: 2px;
    cursor: pointer;
    position: relative;
    border-radius: 4px;
    transition: box-shadow 0.2s;
}

.color-box:hover {
    box-shadow: 0 0 0 2px black inset;
}

.color-box input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
    left: 0;
    top: 0;
}

.color-box input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 2px;
    box-shadow: inset 0 0 0 1px black;
}

/* 🔥 Remove br line breaks under color boxes */
.sidebar-section.color-section label {
    display: inline-block;
}

/* 🔥 Subcategories styling */
.sidebar-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-section ul li a {
    color: #1d1d1d;
    font-size: 13px;
    text-decoration: none;
}

.sidebar-section ul li a:hover {
    text-decoration: underline;
}

/* Optional: spacing between color boxes */
.color-box+.color-box {
    margin-left: 4px;
}

.sidebar-sec-items label {
  display: inline-block;
  margin: 5px 6px 5px 0;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 20px;
  background-color: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.sidebar-sec-items label:hover {
  background-color: #f0f0f0;
}

.sidebar-sec-items input[type="checkbox"] {
  display: none;
}

/* ✅ When checkbox inside label is checked — supported in Chrome, Edge, Safari */
.sidebar-sec-items label:has(input:checked) {
  background-color: #FFF;
  color: #000;
  border-color: #000;
}


.sidebar-sec-items {
    display: flex;
    flex-wrap: wrap;
}

