#wpsl-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}
.wpsl-filter-form {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}
.wpsl-filter-group {
    margin-bottom: 15px;
}
.wpsl-filter-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}
.wpsl-filter-group select,
.wpsl-filter-group input[type="checkbox"] {
    width: unset;
    max-width: 200px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.wpsl-checkbox-group {
    display: grid;
    gap: 8px;
}
.wpsl-checkbox-group.category-group {
    grid-template-columns: repeat(3, 1fr);
}
.wpsl-checkbox-group:not(.category-group) {
    grid-template-columns: repeat(2, 1fr);
}
.wpsl-checkbox-group label {
    display: inline-block;
    margin-bottom: 4px;
}
.wpsl-filter-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    width: 100%;
}
#wpsl-filter-submit, #wpsl-filter-reset {
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    max-height: 40px;
}
#wpsl-filter-submit:hover, #wpsl-filter-reset:hover {
    background: #005177;
}
.wpsl-store-details p {
    margin: 0;
    font-size: 12px;
}
.wpsl-store-meta p {
    margin: 0;
    font-size: 12px;
}
.wpsl-store {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 0px;
}
.wpsl-store-thumb {
    flex: 0 0 80px;
}
.wpsl-store-thumb img {
    max-width: 80px;
    height: auto;
    border-radius: 4px;
}
.wpsl-store-details {
    flex: 1;
}
#wpsl-result-list .wpsl-store {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 0px;
}
.wpsl-thumb-lightbox {
    display: inline-block;
    transition: opacity 0.3s;
}
.wpsl-thumb-lightbox:hover {
    opacity: 0.8;
}
#wpsl-loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}
#wpsl-loading-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
}
.wpsl-loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.wpsl-filter-message {
    background: #4caf50;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    text-align: center;
    display: none;
}
.wpsl-filter-message.error {
    background: #e57373;
}
@media (max-width: 768px) {
    .wpsl-filter-group select,
    .wpsl-filter-group input[type="checkbox"] {
        max-width: 100%;
    }
    .wpsl-checkbox-group,
    .wpsl-checkbox-group.category-group {
        grid-template-columns: 1fr;
    }
    .wpsl-store {
        flex-direction: column;
        align-items: stretch;
    }
    .wpsl-store-thumb {
        flex: none;
        margin-bottom: 10px;
        order: 1;
    }
    .wpsl-store-details {
        order: 0;
    }
    .wpsl-filter-buttons {
        justify-content: center;
    }
}