/* --- Alap Widget Stílusok --- */
.p371-cat-widget {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* --- Főkategória Sor Wrapper --- */
.p371-cat-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    transition: background 0.3s ease;
}

.p371-cat-parent:last-child .p371-cat-wrapper {
    border-bottom: none;
}

/* --- Checkbox és Címke Stílusok --- */
.p371-cat-wrapper input[type="checkbox"],
.p371-cat-submenu li input[type="checkbox"] {
    margin-right: 10px;
    flex-shrink: 0;
}

.p371-cat-wrapper label,
.p371-cat-submenu label {
    flex-grow: 1;
    cursor: pointer;
    font-size: 1em;
}

.p371-cat-parent .p371-cat-wrapper label,
.p371-cat-label {
    font-weight: bold;
}

.p371-cat-label {
    flex-grow: 1;
    font-size: 1em;
    padding: 0 4px;
}

/* --- Lenyíló Ikon és Gomb --- */
.p371-cat-toggle {
    background: none;
    border: none;
    padding: 0 0 0 10px;
    cursor: pointer;
    line-height: 0;
}

.p371-cat-icon {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
    fill: #555;
    width: 12px;
    height: 12px;
}

.p371-cat-toggle.active .p371-cat-icon {
    transform: rotate(0deg);
}

/* --- Alkategória Lista --- */
.p371-cat-submenu {
    list-style: none;
    padding: 5px 0 5px 20px;
    margin: 0;
    display: none;
    background: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid #eee;
}

.p371-cat-submenu li {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

/* --- AJAX és Visszajelzések --- */
.p371-no-results {
    width: 100%;
    text-align: center;
    padding: 40px 20px;
    font-style: italic;
}

.p371-filter-loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #333;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    animation: spin 1s linear infinite;
    margin: 15px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}