/**
 * WCFM Location Filter Styles
 */

/* Location Filter Container */
.wcfm-location-manager-store-filters {
    padding: 15px;
    /* background-color: #f8f8f8;
    border: 1px solid #e0e0e0; */
    border-radius: 4px;
    width: 46%;
    margin: auto;
    margin-top: 20px;
    display: inline-block;
}

#wcfmmp_store_location {
    display: none !important;
}

.wcfm-location-manager-store-filters h4 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #17a2b8;
}

/* Filter Row Layout */
.wcfm-location-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Dropdown Styling */
.wcfm-location-filter-row select {
    flex: 1;
    min-width: 150px;
    padding: 8px 10px;
    border: 1px solid #cccccc;
    border-radius: 3px;
    background-color: #fff;
    color: #333;
    font-size: 15px;
    appearance: menulist;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    box-shadow: 1px 1px 5px 0 #e9e9e9;
    min-height: 38px;
}

.wcfmmp-store-search-form .select2-container {
    padding: 0;
    vertical-align: middle !important;
    min-height: 38px;
}

/* Disabled State */
.wcfm-location-filter-row select:disabled {
    background-color: #f5f5f5;
    color: #888888;
    cursor: not-allowed;
    border-color: #ddd;
}

/* Focus State */
.wcfm-location-filter-row select:focus {
    outline: none;
    border-color: #17a2b8;
    box-shadow: 0 0 0 2px rgba(23, 162, 184, 0.2);
}

/* Loading Overlay */
.wcfmmp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.wcfmmp-ajax-loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #17a2b8;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: wcfmmp-spin 1s linear infinite;
}

@keyframes wcfmmp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Store Search No Result */
.wcfmmp-store-search-no-result {
    padding: 20px;
    text-align: center;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    margin: 15px 0;
    border-radius: 4px;
    color: #666;
    font-style: italic;
}

/* Hide original location fields that might be present in some themes */
.wcfmmp-store-search-form .wcfm-form-field.wcfm_location_state,
.wcfmmp-store-search-form .wcfm-form-field.wcfm_location_city {
    display: none !important;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .wcfm-location-filter-row {
        flex-direction: column;
    }
    
    .wcfm-location-filter-row select {
        width: 100%;
    }
}

/* Store Branch Address Info */
.wcfmmp-store-branch-address {
    margin-top: 10px;
    padding: 10px;
    border-left: 3px solid #17a2b8;
    background-color: rgba(23, 162, 184, 0.05);
}

.wcfmmp-store-branch-address h3 {
    margin: 0 0 5px;
    font-size: 14px;
    color: #17a2b8;
}

.wcfmmp-store-branch-details {
    font-size: 13px;
    color: #666;
}

/* Special styling for the apply filters button if needed */
.wcfm-location-apply-filters {
    background-color: #17a2b8;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
    margin-top: 10px;
}

.wcfm-location-apply-filters:hover {
    background-color: #138496;
}