/* Geolocation styles for delivery address functionality */

/* Geolocation button styles */
.geo-location-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    min-width: 160px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3) !important;
    margin-top: 10px !important;
}

.geo-location-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4) !important;
}

.geo-location-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.geo-location-btn-container {
    margin-top: 10px;
}

.geo-location-btn i {
    font-size: 16px;
}

/* Delivery area info styles */
.delivery-area-info {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.delivery-area-info i {
    font-size: 16px;
}

/* Notification styles */
.geo-notification {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideIn 0.3s ease;
}

.geo-notification-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.geo-notification-error {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.geo-notification-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Google Maps autocomplete styling */
.pac-container {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    font-family: inherit;
}

.pac-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

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

.pac-item-selected {
    background-color: #e3f2fd;
}

.pac-item-query {
    font-weight: 500;
    color: #333;
}

.pac-item-query:before {
    content: "📍 ";
    color: #667eea;
}

/* Loading spinner for geolocation */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .geo-location-btn {
        width: 100%;
        justify-content: center;
        min-width: auto;
    }
    
    .geo-notification {
        font-size: 13px;
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .geo-location-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .geo-location-btn i {
        font-size: 14px;
    }
}
