/* cws-style.css */

/* Basic styling for the dropdown wrappers */
.cws-sorting-wrapper,
.cws-per-page-wrapper {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between label and dropdown */
    margin-bottom: 20px; /* Space below each dropdown */
    font-family: "Inter", sans-serif; /* Recommended font */
}

/* Style for the labels */
.cws-label {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* Style for the select dropdowns */
.cws-dropdown {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 8px; /* Rounded corners */
    background-color: #fff;
    font-size: 16px;
    color: #555;
    appearance: none; /* Remove default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><polyline points="6 9 12 15 18 9"></polyline></svg>'); /* Custom arrow icon */
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Subtle shadow */
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cws-dropdown:focus {
    outline: none;
    border-color: #0073aa; /* WordPress blue on focus */
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* Style for dropdown options */
.cws-dropdown option {
    padding: 5px 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cws-sorting-wrapper,
    .cws-per-page-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .cws-dropdown {
        width: 100%; /* Full width on smaller screens */
    }
}
