input [type="number"] {
    border-width: var(--shopwell-input__border-width);
    font-weight: 500;
    padding: 12px 22px;
    border-color: #ebeff3;
    outline: none;
}



#filter-panel .woocommerce label{
font-weight: 400;
  font-family: Inter,Helvetica,Arial,sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

fieldset {
    padding: 2% 4% 4%;
    width: 100%;
}

#toggle-filter-panel{
    position: absolute;
    margin: 0;
}

#custom-filter-form {
    padding: 15% 8%;
}



/* Panel filtrowania */
.custom-filter-panel {
    position: fixed;
    top: 0;
    right: -350px;
    width: 340px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 40px;
    overflow-y: auto;
    z-index: 99999;
    transition: right 0.3s ease-in-out;
    max-width: 90%;
    min-width: 275px;
    padding: 0;
}

.custom-filter-panel.open {
    right: 0;
}


/*Customowy przycisk*/
button.custom-filter-button,
input[type="submit"].custom-filter-button {
    line-height: 1;
    cursor: pointer;
    border-radius: 3px;
    box-shadow: none;
    text-shadow: none;
    display: inline-block;
    margin-top: 10px;
    padding: 10px 25px;
    text-align: center;
    text-decoration: none;
    transition: opacity .15s linear;
    background-color: #fff;
    color: #000;
    border: solid 2px #000;
    font-size: 100%;
    font-weight: 600;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* Przycisk otwierania panelu */
.custom-filter-toggle {
    margin-bottom: 15px;
    padding: 10px 15px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    cursor: pointer;
}

.custom-filter-toggle:hover {
    background-color: #005f8d;
}

/* Przycisk zamykania panelu */
.custom-filter-close {
    float: right;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
}

.custom-filter-select {
    width: 100%;
    margin-bottom: 15px;
}

.custom-filter-submit {
    padding: 10px 15px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    cursor: pointer;
}

/* Przyciemnione tło (overlay) */
.custom-filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
}

/* Pokazuje overlay, gdy panel jest otwarty */
.custom-filter-panel.open+.custom-filter-overlay {
    display: block;
}

.color-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #f0f0f0;
    border: 2px solid #f0f0f0;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
    transition: all 0.3s ease;
    position: relative;
}

/* wewnętrzny kolorowy kwadrat */
.color-btn::before {
    content: "";
    width: 30px;
    height: 30px;
    background-color: var(--color);

    border: 1px solid #000000;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Styl po zaznaczeniu (kliknięciu checkboxa) */
input[type="checkbox"]:checked+.color-btn {
    background-color: #4b4b4b;
    border-color: #000000;
}

/* Można też zmienić kolor kwadratu po zaznaczeniu – opcjonalnie */
input[type="checkbox"]:checked+.color-btn::before {
    transform: scale(0.8);
    opacity: 0.8;
}

#custom-filter-form .form-control, #custom-filter-form select, #custom-filter-form textarea, #custom-filter-form input[type="text"], #custom-filter-form input[type="password"], #custom-filter-form input[type="datetime"], #custom-filter-form input[type="datetime-local"], #custom-filter-form input[type="date"], #custom-filter-form input[type="month"], #custom-filter-form input[type="time"], #custom-filter-form input[type="week"], #custom-filter-form input[type="number"], #custom-filter-form input[type="email"], #custom-filter-form input[type="url"], #custom-filter-form input[type="search"], #custom-filter-form input[type="tel"], #custom-filter-form input[type="color"], #custom-filter-form .uneditable-input
{
    border-width: var(--shopwell-input__border-width);
    font-weight: 500;
    padding: 12px 22px;
    border-color: #ebeff3;
    outline: none;
}
#custom-filter-form label
{
  font-weight: 400;
  font-size: 17px;
  line-height: 1.5;
}

#toggle-filter-panel{
    max-width: 30%;
}
.woocommerce-ordering {
    max-width: 70%;
}