.elementor-loop-sorter {
    margin-bottom: 20px;
}

/* Dropdown Container */
.elementor-loop-sorter-select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 300px;
}

/* Select Base Style */
.elementor-loop-sorter-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 35px;
}

/* Select States */
.elementor-loop-sorter-select:hover {
    border-color: #999;
    background-color: #f9f9f9;
}

.elementor-loop-sorter-select:focus {
    outline: none;
    border-color: #666;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
    background-color: #fff;
}

.elementor-loop-sorter-select:active {
    border-color: #666;
    background-color: #f5f5f5;
}

/* Select Disabled State */
.elementor-loop-sorter-select:disabled {
    background-color: #f5f5f5;
    border-color: #ddd;
    color: #999;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Select Options */
.elementor-loop-sorter-select option {
    padding: 10px;
    font-size: 14px;
    background-color: #fff;
    color: #333;
}

.elementor-loop-sorter-select option:hover {
    background-color: #f5f5f5;
}

.elementor-loop-sorter-select option:checked {
    background-color: #0073aa;
    color: #fff;
}

/* Select Focus Ring */
.elementor-loop-sorter-select:focus-visible {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Select Placeholder */
.elementor-loop-sorter-select option[value=""] {
    color: #999;
}

/* Buttons Style */
.elementor-loop-sorter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.elementor-loop-sorter-button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.elementor-loop-sorter-button:hover {
    background-color: #f5f5f5;
    border-color: #999;
}

.elementor-loop-sorter-button.active {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Responsive */
@media (max-width: 767px) {
    .elementor-loop-sorter-buttons {
        flex-direction: column;
    }

    .elementor-loop-sorter-button {
        width: 100%;
    }

    .elementor-loop-sorter-select-wrapper {
        max-width: 100%;
    }
} 