/**
 * Styles for location picker functionality
 */

.enjoy-location-fields {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    background-color: #f8f8f8;
}

.enjoy-location-fields h3 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
}

#billing_address_display {
    width: 100%;
    margin-bottom: 10px;
}

#get-current-location {
    margin: 5px 0 15px;
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

#get-current-location:hover {
    background-color: #45a049;
    border-color: #45a049;
}

#location-loading {
    display: inline-block;
    margin-left: 10px;
    color: #777;
    font-style: italic;
}

/* Error message styling */
.location-error {
    display: none;
    padding: 10px 15px;
    margin: 10px 0;
    border-left: 4px solid #dc3232;
    background-color: #fdf2f2;
    color: #444;
    font-size: 14px;
    line-height: 1.5;
}

.location-error strong {
    display: block;
    margin-top: 5px;
    color: #23282d;
}

#map-container {
    border: 1px solid #ddd;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Make the map container responsive */
@media screen and (max-width: 768px) {
    #map-container {
        height: 250px !important;
    }
    
    #get-current-location {
        width: 100%;
    }
}

/* Enhance Google Places autocomplete dropdown */
.pac-container {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border-radius: 0 0 3px 3px;
}

.pac-item {
    padding: 8px;
    font-size: 14px;
}

.pac-item:hover {
    background-color: #f5f5f5;
}