/* Filter Container */
.integrazo-wz-setup-filter-content {
    display: none;
    background-color: #f9f9f9;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 70%;
    margin-left: 170px;
}

.integrazo-wz-setup-filter-clear-all {
    font-size: 0.9rem;
    color: #007bff;
    text-align: right;
    cursor: pointer;
    margin-bottom: 15px;
}

.integrazo-wz-setup-filter-clear-all:hover {
    text-decoration: underline;
}

/* Filter Group and Row */
.integrazo-wz-setup-filter-block {
    margin-bottom: 10px;
}

.integrazo-wz-setup-filter-group {
    width: 100%;
}

.integrazo-wz-setup-filter-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: nowrap;
    box-sizing: border-box;
}

/* Inputs and Dropdowns */
.integrazo-wz-setup-filter-field,
.integrazo-wz-setup-filter-condition,
.integrazo-wz-setup-filter-value {
    flex: 1 1 300px;
    max-width: 100%;
    padding: 10px;
    font-size: 0.9rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.integrazo-wz-setup-filter-value {
    flex: 2;
}

/* Action Buttons */
.integrazo-wz-setup-filter-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.integrazo-wz-setup-filter-add-icon,
.integrazo-wz-setup-filter-close-icon {
    background-color: #e0e0e0;
    color: #666;
    font-size: 1rem;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.integrazo-wz-setup-filter-add-icon:hover,
.integrazo-wz-setup-filter-close-icon:hover {
    background-color: #ccc;
}

/* Connector (AND/OR) Dropdown Between Blocks */
.integrazo-wz-setup-filter-connector {
    text-align: center;
    margin: 10px 0;
}

.integrazo-wz-setup-filter-logic {
    padding: 8px;
    font-size: 0.9rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 12%;
    /* width: 100px; */
}

/* Responsive Design */
@media (max-width: 768px) {
    .integrazo-wz-setup-filter-row {
        flex-wrap: wrap;
    }
    .integrazo-wz-setup-filter-field,
    .integrazo-wz-setup-filter-condition,
    .integrazo-wz-setup-filter-value {
        flex: 1 1 100%;
        margin-bottom: 10px;
    }
    .integrazo-wz-setup-filter-actions {
        justify-content: flex-start;
        width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .integrazo-wz-setup-filter-row {
        flex-wrap: wrap;
    }
    .integrazo-wz-setup-filter-field,
    .integrazo-wz-setup-filter-condition,
    .integrazo-wz-setup-filter-value {
        flex: 1 1 calc(50% - 15px);
    }
}

@media (min-width: 1200px) {
    .integrazo-wz-setup-filter-row {
        flex-wrap: nowrap;
    }
    .integrazo-wz-setup-filter-field,
    .integrazo-wz-setup-filter-condition,
    .integrazo-wz-setup-filter-value {
        flex: 1 1 calc(33% - 15px);
    }
    .integrazo-wz-setup-filter-actions {
        justify-content: flex-end;
    }
}
