.taxonomy-filter-widget {
    margin-bottom: 30px;
}

.taxonomy-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.taxonomy-filter-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    background-color: #f5f5f5;
    color: #333333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
}

.taxonomy-filter-button[data-term-parent]:not([data-term-parent="0"]) {
    opacity: 0.9;
    font-size: 13px;
}

.taxonomy-filter-button.active {
    background-color: #0073aa;
    color: #ffffff;
}

.taxonomy-filter-button .term-count {
    font-size: 12px;
    opacity: 0.8;
}

.taxonomy-filter-dropdown {
    width: 100%;
    max-width: 400px;
}

.taxonomy-filter-select {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #ffffff;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.taxonomy-filter-select:hover,
.taxonomy-filter-select:focus {
    border-color: #0073aa;
    outline: none;
}

.taxonomy-filter-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
}

.taxonomy-filter-loading .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 115, 170, 0.2);
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.taxonomy-filter-post {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.taxonomy-filter-post:last-child {
    border-bottom: none;
}

.taxonomy-filter-post .post-thumbnail {
    flex-shrink: 0;
    width: 200px;
}

.taxonomy-filter-post .post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.taxonomy-filter-post .post-content {
    flex: 1;
}

.taxonomy-filter-post .post-title {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.4;
}

.taxonomy-filter-post .post-title a {
    color: #333333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.taxonomy-filter-post .post-title a:hover {
    color: #0073aa;
}

.taxonomy-filter-post .post-excerpt {
    margin-bottom: 15px;
    color: #666666;
    line-height: 1.6;
}

.taxonomy-filter-post .read-more {
    display: inline-block;
    padding: 8px 16px;
    background-color: #0073aa;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.taxonomy-filter-post .read-more:hover {
    background-color: #005a87;
}

.no-posts-found {
    padding: 20px;
    text-align: center;
    color: #666666;
    font-style: italic;
}

@media (max-width: 768px) {
    .taxonomy-filter-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .taxonomy-filter-button {
        width: 100%;
        justify-content: center;
    }
    
    .taxonomy-filter-post {
        flex-direction: column;
    }
    
    .taxonomy-filter-post .post-thumbnail {
        width: 100%;
    }
}
