/* ==========================================================================
   Big and Cheap Wholesale - Modern Stock Status Dropdown Filter
   Brand Palette:
     - Primary / Secondary Dark: #142745, #383838
     - Accent Hover: #E58129
     - In Stock Green: #3CB813
     - Out of Stock: #E53935
     - Input Background: #F1F1F1
     - Font: "Urbanist", "Inter", sans-serif
   ========================================================================== */

.custom-stock-filter-container {
    display: flex;
    justify-content: flex-end;
    /* Align to the right */
    align-items: center;
    margin: 15px 0 25px 0;
    width: 100%;
    clear: both;
    box-sizing: border-box;
}

.custom-stock-filter-form {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    background: transparent;
}

/* "Availability:" label */
.custom-stock-filter-form .stock-filter-title {
    font-family: 'Urbanist', 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #142745;
    letter-spacing: 0.2px;
    text-transform: capitalize;
    margin: 0;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

/* Dropdown select container with custom chevron icon */
.custom-stock-filter-form .stock-filter-select-wrapper {
    position: relative;
    display: inline-block;
    min-width: 165px;
}

/* Clean, modern select box matching bigandcheap wholesale theme input styles */
.custom-stock-filter-form .stock-filter-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    color: #142745;
    background-color: #F1F1F1;
    border: 1px solid #E2E4E8;
    border-radius: 5px;
    padding: 8px 36px 8px 14px;
    cursor: pointer;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease-in-out;
}

/* Custom dropdown chevron arrow */
.custom-stock-filter-form .stock-filter-select-wrapper::after {
    content: '';
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4.5px solid transparent;
    border-right: 4.5px solid transparent;
    border-top: 5px solid #142745;
    pointer-events: none;
    transition: transform 0.2s ease;
}

/* Hover state */
.custom-stock-filter-form .stock-filter-select:hover {
    background-color: #FFFFFF;
    border-color: #142745;
}

/* Focus state */
.custom-stock-filter-form .stock-filter-select:focus {
    background-color: #FFFFFF;
    border-color: #142745;
    box-shadow: 0 0 0 2px rgba(20, 39, 69, 0.12);
}

.custom-stock-filter-form .stock-filter-select option {
    font-size: 14px;
    color: #142745;
    background-color: #ffffff;
    padding: 8px 12px;
}

/* AJAX Loading State */
.custom-stock-filter-form.stock-filter-pending {
    pointer-events: none;
    opacity: 0.7;
}

.stock-filter-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.45;
    transition: opacity 0.25s ease;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .custom-stock-filter-container {
        margin: 10px 0 18px 0;
    }

    .custom-stock-filter-form .stock-filter-select-wrapper {
        min-width: 140px;
    }

    .custom-stock-filter-form .stock-filter-select {
        font-size: 13px;
        padding: 7px 32px 7px 12px;
    }
}