.section-filter {
    display: flex;
    justify-content: space-between;
    margin: 26px 0 0;
    align-items: baseline;
    border-bottom: 1px solid #ddd;
    padding-bottom: 34px;
    flex-wrap: wrap;
}

.container-filters {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(160px, auto));
    align-items: center;
    width: 85%;
    gap: 25px;
    margin-bottom: 20px;
}

.custom-select {
    position: relative;
    font-size: 13px;
    display: block;
    padding: 7px 18px;
    border: none;
    background-color: #f6f6f6;
    cursor: pointer;
    border-radius: 40px;
}

.custom-select.menu-opened,
.custom-select:hover,
.custom-select:hover .value-option-view,
.delete-filter:hover{
    background: #333;
    color: #fff;
}

.custom-select .container-value-selected-icon {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.container-value-selected-icon.opt-group:hover .value_selected  {
    text-decoration: underline;
}

.custom-select .value_selected,.custom-select .filter-opt-group {
    font-size: 12px;
    padding: 4px;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    color: rgb(30,30,30);
    font-weight: 600;
}

.custom-select.menu-opened .value_selected:not(.opt-group),.custom-select.menu-opened .filter-opt-group {
    color: #fff;
}

.custom-select.menu-opened .fa-chevron-down:not(.chevron-opt-group) {
    transform: rotate(180deg);
}

.custom-select.menu-opened .chevron-opt-group {
    color: #333333;
}

.custom-select ul {
    z-index: 9;
    position: absolute;
    left: 0;
    list-style: none;
    display: none;
    background-color: white;
    box-shadow: 1px 3px 8px 0px #929292;
    transition: height .4s ease, opacity .2s ease;
    min-width: 300px;
    overflow: auto;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #dfdfdf;
    overflow-y: auto;
    top: 55px;
    max-height: 300px;
}

ul.option-issue.normal-select.option-opt-group {
    position: unset;
    box-shadow: unset;
    border: unset;
    padding: 4px;
    max-height: 172px;
}

.custom-select ul::-webkit-scrollbar {
    -webkit-box-shadow: inset 0 0 6px #ddd;
    border-radius: 10px;
    width: 10px;
}

.custom-select ul::-webkit-scrollbar-thumb {
    border-radius: 5px;
    width: 5px;
    background-color: #333;
}

.custom-select ul.normal-select.show-option-select {
    display: block;
}

ul.dropdown-color.show-option-select {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    width: 400px;
    display: grid;
}

.custom-select ul.normal-select li {
    font-weight: 400;
    white-space: nowrap;
    min-width: 100px;
    color: #000;
    font-size: 14px;
    display: flex;
    padding: 16px 0;
    align-items: center;
    cursor: pointer;

    justify-content: space-between;
}

ul.dropdown-color li {
    display: flex;
    flex-direction: column-reverse;
    position: relative;
    text-align: center;
    justify-content: space-between;
}

ul.dropdown-color li .label-color {
    margin-top: 10px;
}

ul.dropdown-color li .label-color span{
    color: #333333;
    font-weight: 400;
}

.icona-forma {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #f5f5f5;
}

.icona-forma > div {
    border: 1px solid #333;
}

.icona-forma .rectangle {
    width: 10px;
    height: 28px;
}

.icona-forma .square {
    width: 24px;
    height: 24px;
}

.icona-forma .circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.icona-forma .ellipse {
    width: 26px;
    height: 17px;
    border-radius: 50%;
}

.icona-forma .botte {
    width: 26px;
    height: 17px;
    border-radius: 6px;
}

.custom-select.menu-opened input.normal-checkbox {
    position: relative;
    border-radius: 4px;
    border: 1px solid #929292;
    width: 24px;
    height: 24px;
    background: #fff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    accent-color: #333;
}

input.color-checkbox {
    opacity: 0;
    position: absolute;
    top: 5px;
    left: 7px;
    width: 54px;
    height: 54px;
}

input.color-checkbox:checked ~ .icon-color {
    border: 1.5px solid #333333;
    position: relative;
}

input.color-checkbox:checked ~ .icon-color:before {
    content: "X";
    position: absolute;
    color: #333;
    font-size: 28px;
    top: 12px;
    font-weight: 300;
    right: 21px;
}

.icon-color {
    background: #ddd;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    align-self: center;
}

.custom-select .value_selected .fa-chevron-down {
    font-size: 16px;
    margin-left: 12px;
    vertical-align: middle;
}

.delete-filter {
    display: flex;
    padding: 10px 18px;
    border: none;
    background-color: #f6f6f6;
    cursor: pointer;
    border-radius: 40px;
    min-width: 160px;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.delete-filter span{
    font-size: 14px;
    font-weight: 700;
}

.container-total-article {
    margin-left: 8px;
    color: #979792;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
}

.filter-selected {
    display: flex;
    gap: 36px;
    margin-top: 26px;
}

.filter-seleced {
    display: flex;
    border: 1px solid #333333;
    background-color: #f6f6f6;
    cursor: pointer;
    border-radius: 40px;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 18px;
}

.filter-seleced:hover {
    background: #333;
    color: #fff;
}

.delete-one-filter {
    cursor: pointer;
    margin-right: 7px;
}

.container-input-select:not(.field_form) {
    border-bottom: 1px solid #ddd;
    padding: 25px 0;
}

.container-filters input[type="checkbox"]:checked:before {
    left: 6px;
    top: 4px;
}

.modal-layer {
    display: none;
}

@media (max-width: 472px) {
    .filter-selected {
        display: none;
    }

    .container-filters {
        display: flex;
        overflow: auto;
        width: 100%;
    }

    .custom-select {
        margin-bottom: 14px;
    }

    .custom-select .container-value-selected-icon {
        width: max-content;
    }

    .custom-select .container-value-selected-icon .fa-chevron-down{
        display: none;
    }

    .custom-select.menu-opened,
    .custom-select:hover,
    .custom-select:hover .value-option-view {
        background: #f6f6f6;
        color: #333;
    }

    .modal-layer {
        position: absolute;
        height: calc(100dvh - 48px);
        /* top: 50%; */
        width: 100%;
        background: #33333387;
        z-index: 999;
        left: 0;
        flex-direction: column;
        justify-content: flex-end;
    }

    .modal-layer.open-layer {
        display: flex;
    }

    .modal-layer-internal {
        max-height: 80%;
        background: white;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .close-modal-layer {
        width: 24px;
        height: 24px;
        position: relative;
        cursor: pointer;
    }

    .close-modal-layer::before {
        content: "";
        position: absolute;
        height: 2px;
        width: 20px;
        background: #333;
        top: 50%;
        transform: rotate(45deg);
    }

    .close-modal-layer::after {
        content: "";
        position: absolute;
        height: 2px;
        width: 20px;
        background: #333;
        top: 50%;
        transform: rotate(-45deg);
    }

    .modal-layer-header {
        display: flex;
        justify-content: space-between;
        padding: 20px;
        border-bottom: 1px solid #ddd;
    }

    .modal-layer .container-value-selected-icon .fa-chevron-down.rotate {
        transform: rotate(180deg);
    }

    .modal-layer-header .close-modal-layer {
        margin-left: 10px;
    }

    .container-filters-layer {
        height: 70%;
        overflow: auto;
    }

    .modal-layer .container-value-selected-icon {
        width: 100%;
        display: flex;
        justify-content: space-between;
        border-bottom: 1px solid #ddd;
        padding: 20px;
    }

    .modal-layer ul {
        display: none;
        list-style: none;
        padding: 4px 20px 20px;
    }

    .modal-layer ul.show-option-select:not(.dropdown-color) {
        display: block;
    }

    .modal-layer ul.dropdown-color.show-option-select {
        width: 100%;
    }

    .modal-layer ul li {
        display: flex;
        justify-content: space-between;
        margin: 12px 0;
        align-items: center;
    }

    .modal-layer ul li input[type="checkbox"]{
        margin-right: 0;
    }

    .container-button-layer {
        padding: 20px;
        border-top: 1px solid #ddd;
    }

    .container-button-layer button {
        display: flex;
        padding: 10px 18px;
        border: none;
        cursor: pointer;
        border-radius: 40px;
        min-width: 160px;
        align-items: baseline;
        width: 90%;
        margin: auto;
        justify-content: center;
    }

    .container-button-layer button.delete-filter.layer {
        color: #333333;
        margin-top: 10px;
    }

    .container-button-layer button.button-search-layer {
        background: #333;
        color: #fff;
    }

    .icon-key {
        display: flex;
        align-items: center;
        gap: 8px;
    }
}