.cgml-location-dropdown-wrapper {
    position: relative;
    display: inline-block;
    min-width: 200px;
}

.cgml-location-dropdown {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    cursor: pointer;
}

.cgml-location-dropdown:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.cgml-location-dropdown optgroup {
    font-weight: 600;
    color: #1e1e1e;
}

.cgml-location-dropdown option {
    padding: 4px 8px;
}

/* Notification styles */
.cgml-notification {
    position: fixed;
    top: 32px;
    right: 20px;
    z-index: 9999;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    animation: slideIn 0.3s ease-out;
    max-width: 300px;
    background-color: #fff;
}

.cgml-notification p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.cgml-location-selector {
    max-width: 400px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: background-color 0.2s ease;
}

.cgml-location-selector.open {
    border-radius: 8px 8px 0 0;
}

.cgml-location-selector:hover {
    background-color: #f5f5f5;
}

.cgml-current-header {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    /* border-bottom: 1px solid #e5e5e5; */
    font-size: 15px;
    font-weight: 500;
    color: #1d252c;
    
    border-radius: 8px;
}





.cgml-current-header i {
    font-size: 16px;
    color: var(--cgSageGreen);
}

.cgml-empty-state {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border-bottom: 1px solid #e5e5e5;
    font-size: 15px;
    font-weight: 500;
    color: #1d252c;
    transition: background-color 0.2s ease;
    border-radius: 8px;
}

.cgml-empty-state:hover {
    background-color: #f5f5f5;
}

.cgml-empty-state i {
    font-size: 16px;
    color: var(--cgSageGreen);
}

.cgml-location-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-top: 0px;
    z-index: 1000;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid #e5e5e5;
}

.cgml-location-selector.open .cgml-location-list {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

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

.cgml-location-option {
    padding: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin: 8px;
    text-align: left;
}

.cgml-location-option:hover {
    background-color: #f5f5f5;
}

.cgml-location-option.current {
    background-color: #f8f9fa;
    border-color: var(--cgSageGreen);
    border-radius: 8px;
}

.cgml-info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.cgml-info-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: #1d252c;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cgml-info-header h3 i {
    font-size: 16px;
    color: var(--cgSageGreen);
}

.cgml-hours-status {
    font-size: 13px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
}

.cgml-hours-status.open {
    color: #0a8a00;
    background-color: #ecfdf3;
}

.cgml-hours-status.closed {
    color: #ce1126;
    background-color: #fef2f2;
}

.cgml-location-address {
    font-size: 13px;
    color: #6e6e6e;
    line-height: 1.4;
    margin-top: 4px;
    text-align: left;
}

.cgml-next-open {
    font-size: 13px;
    color: #6e6e6e;
    margin-top: 4px;
    font-style: italic;
}

.cgml-store-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--cgSageGreen);
    text-decoration: none;
    padding: 4px 0;
}

.cgml-store-link:hover {
    text-decoration: underline;
    color: #003087;
}

.cgml-store-link i {
    font-size: 14px;
}

.cgml-list-divider {
    padding: 5px 10px;
    color: #6e6e6e;
    font-size: 13px;
    font-weight: 500;
    
}

.cgml-shipping-note {
    font-size: 13px;
    color: #6e6e6e;
    margin-top: 4px;
    text-align: left;
}

.cgml-location-option.shipping {
    background-color: #f8f9fa;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .cgml-location-selector {
        /* position: static;
        border-radius: 0;
        box-shadow: none; */
    }

    .cgml-location-list {
        /* position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        max-height: 80vh;
        border-radius: 16px 16px 0 0; */
        animation: slideUp 0.3s ease-out;
    }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }

    .cgml-location-option {
        margin: 8px;
    }

    .cgml-location-option.current {
        margin: 8px;
    }
} 